From Fedora Project Wiki

mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
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''' (''Python module name'') 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 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 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 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.
* 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.
* Fedora 30 /usr/bin/python is python2, Pyside2 uses/needs python3.
 
Pyside2 packaging for Fedora was tracked in bugzilla [https://bugzilla.redhat.com/show_bug.cgi?id=1634658 #1634658] and reviewed in [https://bugzilla.redhat.com/show_bug.cgi?id=1701013 #1701013].
__NOTOC__


== 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 17: Line 20:
* project name cannot be yet changed because IDE's Python support is not finished yet.
* 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'''
* 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 ==
* [https://apps.fedoraproject.org/packages/falkon falkon]
* [https://apps.fedoraproject.org/packages/freecad freecad]
* [https://pyzo.org/ pyzo]
* [http://www.pyqtgraph.org/ PyQtGraph]
* [https://github.com/enthought/pyface pyface]


== 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]
* [http://webchat.freenode.net?nick=fedora-wiki-.&channels=%23qt-pyside&prompt=1&uio=d4 freenode.net - #qt-pyside IRC channel]
* [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
* [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]


[[Category:Python]]
[[Category:Python]]
[[Category:Qt]]
[[Category:Qt]]

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