(first cut) |
mNo edit summary |
||
Line 1: | Line 1: | ||
'''Qt''' for [[Python]] (official) bindings are called Pyside and [https://blog.qt.io/blog/2018/06/13/qt-python-5-11-released/ since June 2018], the [https://www.qt.io/company Qt company] picked up lagging support again and released '''Pyside2''' with Qt 5.11 technical preview realease that is providing in-par Python support with each main release. Pyside2 packaging for Fedora was tracked in [https://bugzilla.redhat.com/show_bug.cgi?id=1634658 bugzila #1634658]. | '''Qt''' for [[Python]] (official) bindings are called '''Pyside''' and [https://blog.qt.io/blog/2018/06/13/qt-python-5-11-released/ since June 2018], the [https://www.qt.io/company Qt company] picked up lagging support again and released '''Pyside2''' with Qt 5.11 technical preview realease that is providing in-par Python support with each main release. Pyside2 packaging for Fedora was tracked in [https://bugzilla.redhat.com/show_bug.cgi?id=1634658 bugzila #1634658]. | ||
Since the proper support is still relatively new, the Python support is not finished yet (2019-04) and there are some things good to know. This pages contains some notes about Fedora and Pyside2. | Since the proper support is still relatively new, the Python support is not finished yet (2019-04) and there are some things good to know. This pages contains some notes about Fedora and Pyside2. |
Revision as of 10:39, 10 April 2019
Qt for Python (official) bindings are called Pyside and since June 2018, the Qt company picked up lagging support again and released Pyside2 with Qt 5.11 technical preview realease that is providing in-par Python support with each main release. Pyside2 packaging for Fedora was tracked in bugzila #1634658.
Since the proper support is still relatively new, the Python support is not finished yet (2019-04) and there are some things good to know. This pages contains some notes about Fedora and Pyside2.
- Pyside2 was released with 5.11, first Fedora having Qt supporting it is f30 release with qt-5.12.
- Fedora /usr/bin/python is python2, Pyside2 uses/needs python3.
Installation
Development kit:
# dnf install -y python-pyside2 pyside2-tools shiboken2 python-pyside2 python3-pyside2 python3-pyside2-devel python3-shiboken2-libs python3-shiboken2-devel
Debugging support:
# dnf install -y pyside2-tools-debuginfo python-pyside2-debuginfo python-pyside2-debugsource python3-pyside2-debuginfo python3-shiboken2-libs-debuginfo shiboken2-debuginfo
Creator
Qt Creator is a project editor (IDE) for Qt.
- project name cannot be yet changed because IDE's Python support is not finished yet.
- Python intepreter needs to be changed manually: Projects -> Build & Run -> Run Settings -> Run -> Interpreter -> /usr/bin/python3