PyQt & PySide

作者: 我的小小笔尖 | 来源:发表于2021-06-08 11:07 被阅读0次

    1.PySide

    QT for Pyton,QT官方出品,算是亲儿子,包括了PySide & Shiboken

    QT官网:https://www.qt.io/zh-cn/
    QT官方Python组件:https://www.qt.io/zh-cn/qt-for-python
    PySide文档:https://doc.qt.io/qtforpython/index.html#

    Licensing
    PySide6 is available under both Open Source (LGPLv3/GPLv2) and commercial license.

    LGPL协议:使用(非修改)了LGPL协议产品,其产品无需开源。

    2.PyQT

    第三方的一家公司开发的,时间要早于PySide

    https://pypi.org/project/PyQt5/
    https://pypi.org/project/PyQt6/
    https://www.riverbankcomputing.com/software/pyqt/

    License
    PyQt6 is released under the GPL v3 license and under a commercial license that allows for the development of proprietary applications.

    GPL协议:使用了GPL协议产品,其产品必须开源和免费。

    两者都是将QT迁移到Python环境下,功能差不多,主要是协议不同,个人更倾向于使用PySide

    需要收回上面说的,亲儿子也会不争气啊
    我在运行官网一个例子时,提示:

    No module named 'PySide6.QtWebEngineWidgets'
    

    百度不到解决方法,在bing国际版搜索找到问题解释:
    https://forum.qt.io/topic/122166/problem-with-pyside6-and-qtwebenginewidgets-module/6
    大意是目前最新的pyside6.1不支持QtWebEngine,等到今年9月或10月升级到pyside6.2才会支持。

    What!!
    pyside6官网文档太差劲了吧,不确认能否运行就贴出来了??

    官网示例链接:
    https://doc.qt.io/qtforpython/examples/example_webenginewidgets__tabbedbrowser.html?highlight=qtweb

    相关文章

      网友评论

        本文标题:PyQt & PySide

        本文链接:https://www.haomeiwen.com/subject/gtqleltx.html