From Fedora Project Wiki

mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
== Installation ==
== Installation ==
Development kit:
Development kit:
  # dnf install -y python-pyside2 pyside2-tools shiboken2 python-pyside2  python3-pyside2 python3-pyside2-devel python3-shiboken2-libs python3-shiboken2-devel  
  # dnf install -y python-pyside2 pyside2-tools shiboken2 python-pyside2  python3-pyside2 python3-pyside2-devel python3-shiboken2 python3-shiboken2-devel  


Debugging support:
Debugging support:
Line 33: Line 33:
== External links ==
== External links ==
* [https://wiki.qt.io/Qt_for_Python qt.io - Qt for Python]
* [https://wiki.qt.io/Qt_for_Python qt.io - Qt for Python]
* [https://web.libera.chat/#qt-pyside libera.chat - #qt-pyside IRC channel] for support
* [http://webchat.freenode.net?nick=fedora-wiki-.&channels=%23qt-pyside&prompt=1&uio=d4 freenode.net - #qt-pyside IRC channel] for support
* [http://webchat.freenode.net?nick=fedora-wiki-.&channels=%23qt-pyside&prompt=1&uio=d4 freenode.net - #qt-pyside IRC channel] for support
* [https://groups.google.com/forum/#!topic/pyside-dev/pqwzngAGLWE USENET NEWS, Lars Knoll's announcement]
* [https://groups.google.com/forum/#!topic/pyside-dev/pqwzngAGLWE USENET NEWS, Lars Knoll's announcement]

Latest revision as of 07:56, 21 April 2023

Qt for Python (official) bindings are called Pyside (Python module name) and since June 2018, the Qt company picked up lagging support and released Pyside2 with Qt 5.11 technical preview release. For now on, coming releases provide on par Python support with each main release.

Since latest bindings are still relatively new and not finished yet (2019-04), 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 30 /usr/bin/python is python2, Pyside2 uses/needs python3.

Pyside2 packaging for Fedora was tracked in bugzilla #1634658 and reviewed in #1701013.


Installation

Development kit:

# dnf install -y python-pyside2 pyside2-tools shiboken2 python-pyside2  python3-pyside2 python3-pyside2-devel python3-shiboken2 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

Misc

  • Designer XML UI file compailer is pyside2-uic

Packages using Qt for Python

External links