推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
Livid
406.95D
547.4D
V2EX  ›  Python

Qt for Python (aka PySide2)

  •  
  •   Livid ·
    PRO
    · May 6, 2018 · 8927 views
    This topic created in 3117 days ago, the information mentioned may be changed or developed.
    21 replies  •  2018-05-07 09:45:25 +08:00
    afpro
    afpro
    May 6, 2018
    1
    PySide 的 Qt 版本不是最新的 比较蛋疼
    WildCat
    WildCat
    May 6, 2018
    2
    Python 写 Qt 有什么优势么?能否直接编译为 native ?
    shootsoft
    shootsoft
    May 6, 2018 via iPhone❤️1
    3
    那我来个示例: Python Qt 写的视屏截图,自动识别字幕位置拼接成长图: https://github.com/shootsoft/PlutoVideoSnapshoter

    打包了 Windows 和 macOS 的可执行文件包,欢迎 star😁
    shootsoft
    shootsoft
    May 6, 2018 via iPhone❤️1
    4
    @afpro
    @WildCat

    PySide 不如官方的 Qt Designer 好用,python 可以直接加载 ui 文件,可以打包成可执行文件。
    omph
    omph
    May 6, 2018
    5
    @shootsoft 感觉做界面布局好麻烦,有没有拖控件的方法?
    shootsoft
    shootsoft
    May 6, 2018 via iPhone
    6
    @omph Qt Designer 可以拖放,生成.ui 文件,python 可以直接加载。不过有些技巧还是需要掌握的,建议看个一个小时左右的视屏教程就可以了。
    secondwtq
    secondwtq
    May 6, 2018
    7
    @omph 解决方案:不要那么在意界面,能用就得了

    话说怎么没见人抱怨过前端布局麻烦 ...
    wwqgtxx
    wwqgtxx
    May 6, 2018 via iPhone
    8
    @shootsoft 问一下 pytouch2 和 pyqt5 有啥区别
    wwqgtxx
    wwqgtxx
    May 6, 2018 via iPhone
    9
    上面打错了,是 pyside2 和 pyqt5 有啥区别
    @shootsoft
    testsec
    testsec
    May 6, 2018 via iPhone
    10
    @shootsoft 老哥 你有教程么 方便放一下么
    F1024
    F1024
    May 6, 2018
    11
    @wwqgtxx
    PyQt 是商业及 GPL 的版权, 而 PySide 是 LGPL.
    也就是如果使用 PyQt 做商业应用的话就需要付费, 而使用 Nokia 的 PySide 则不需要。
    omph
    omph
    May 6, 2018
    12
    @secondwtq 因为用过 c#,被 ms 惯坏了 😶
    hourann
    hourann
    May 6, 2018 via iPhone
    13
    用没有人比较过 pyqt,pyside,qt/c++之间的性能?包括应用启动时间,界面流畅度等。用 python 的 qt 绑定总是在性能上有所妥协的吧?不知道会有多大妥协。我之前用 pyqt5 做过一些应用,pyqt 的另一大坑是打包麻烦。
    Va1n3R
    Va1n3R
    May 6, 2018
    14
    之前用过 pyqt5,跨平台很赞。但是如果需要打包的话就很蛋疼了,总是各种依赖问题,还有包体积贼大! pyqt5 的资料也好少,想美化界面都没地方学。。。
    chroming
    chroming
    May 6, 2018 via Android
    15
    没几个人用,没包
    mashirozx
    mashirozx
    May 6, 2018
    16
    py 3.6 不支持 23333
    <img src="https://view.moezx.cc/images/2018/05/06/Capture851208c08750b72e.png" alt="Capture851208c08750b72e.png" border="0" />
    thedrwu
    thedrwu
    May 6, 2018 via Android❤️1
    17
    @WildCat

    python 写 qt,可以整合 numpy,对比 C++调用 blas 或者其他高端矩阵库方便许多。

    若是用不到 numpy,宁愿直接写 C++。毕竟自从 c++11 后,函数牛逼了,智能指针、正则、auto 进标准了,写起来跟脚本语言差不多
    shootsoft
    shootsoft
    May 6, 2018 via iPhone
    18
    @wwqgtxx 这个我不是很清楚…不过我看其他人貌似已经回答了😅
    shootsoft
    shootsoft
    May 6, 2018 via iPhone
    19
    @testsec YouTube 上有很多,付费的 Udemy 有比较系统的课程。
    ioth
    ioth
    May 7, 2018
    21
    QT 还活着啊。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   917 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 21:19 · PVG 05:19 · LAX 13:19 · JFK 16:19
    ♥ Do have faith in what you're doing.