Difference between revisions of "Qt for Python"

From Qt Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 104: Line 104:
  
 
* Official '''IRC channel''' on [https://libera.chat/ Libera.chat] '''#qt-pyside'''
 
* Official '''IRC channel''' on [https://libera.chat/ Libera.chat] '''#qt-pyside'''
* Gitter: [http://gitter.im/PySide/pyside2 gitter.im/PySide/pyside2]
+
* Gitter: [http://gitter.im/PySide/pyside2 gitter.im/PySide/pyside2] (even if the url contains 'pyside2' it includes 'pyside6' discussion as well)
* Matrix/Riot: '''#qt-pyside:matrix.org''' (Qt for Python)
+
* Matrix/Riot: [https://webchat.kde.org/#/room/#qt-pyside:kde.org #qt-pyside:kde.org]
 
* Telegram Group: [https://t.me/qtforpython Qt for Python]
 
* Telegram Group: [https://t.me/qtforpython Qt for Python]
  

Latest revision as of 13:44, 6 July 2022

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

Qt for Python

Qt for Python official logo.

The Qt for Python project aims to provide a complete port of the PySide module to Qt. The development started on GitHub in May 2015. The project managed to port PySide to Qt 5.3, 5.4 & 5.5. During April 2016 The Qt Company decided to properly support the port (see details ).

The module was released mid June 2018 as a Technical Preview (supporting Qt 5.11), and it was officially released without the Technical Preview tag, in December 2018 for Qt 5.12. In December 2020, the module was released for Qt6, which is the latest available version, which has the following differences:

  • It doesn't support Python 2.7,
  • Dropped support for Python 3.5, keeping 3.6+ only

This wiki page tracks the progress of the Qt for Python project development and provides further information concerning the effort.

Qt for Python is available under LGPLv3/GPLv2 and commercial license for the following platforms:

Linux macOS Windows
32bit 64bit 32bit 64bit Apple Silicon 32bit 64bit
Python 3.6+ ⦿
  • ✸ No Qt Support https://doc.qt.io/qt-6/supported-platforms.html
  • ☆ Not supported / No packages
  • ⦿ Supported from 6.2.2 / Can be built from source
  • ✦: 5.14 is the first version to support Python 3.8, but Python 3.8.0 will not work on Windows. Please use Python 3.8.1 or greater.
  • Please notice that Android, iOS, and WebAssembly are not supported yet.


Get PySide6 via pip by running: pip install pyside6

Pyside6 install.gif

What does it look like?

Code Application
1 import sys
2 from PySide6.QtCore import Qt
3 from PySide6.QtWidgets import QApplication, QLabel
4                                                      
5 if __name__ == "__main__":
6     app = QApplication(sys.argv)
7     label = QLabel("Hello World", alignment=Qt.AlignCenter)
8     label.show()
9     sys.exit(app.exec_())

2020-12-16-101334 305x245 scrot.png



More examples can be found in the project's repository inside the examples directory.

Getting Started

Community

The following chat platforms are connected via a bridge, so independent of the one you join, you will get the messages from the other ones.

Development Status

  • Development Notes by date: the summary of the development progress.
  • Qt for Python Development Progress Notes The most current view of the progress can be found in Jira: Unresolved issues and All issues (including resolved). The second link is useful to monitor the progress of the backlog. The best way to achieve this is to sort the list by the "Updated" column. Larger backlog/feature items are filed as "User Stories" in Jira.
  • Missing PySide6 bindings: the list of the current missing bindings.

Contributing to the Qt for Python Wiki

This Wiki is a community area where you can easily contribute, and which may contain rapidly changing information. Please put any wiki pages related to Qt for Python into the "QtForPython" category by adding the following text to the top of the page:

When creating a new wiki page, please start the name with the prefix "Qt_for_Python/", so all the wiki page names will have the same structure and breadcrumbs are generated for easier navigation.