|Original author(s)||The Qt Company (as part of Nokia)|
|Developer(s)||The Qt Company|
|Initial release||August 18, 2009|
PySide6 6.0.1 / February 4, 2021
|Operating system||Linux/X11, macOS, Windows|
PySide is a Python binding of the cross-platform GUI toolkit Qt developed by The Qt Company, as part of the Qt for Python project. It is one of the alternatives to the standard library package Tkinter. Like Qt, PySide is free software. PySide supports Linux/X11, macOS, and Microsoft Windows.
There have been three major versions of PySide:
- PySide supports Qt 4
- PySide2 supports Qt 5
- PySide6 supports Qt 6
PySide version 1 was released in August 2009 under the LGPL by Nokia, then the owner of the Qt toolkit, after it failed to reach an agreement with PyQt developers Riverbank Computing to change its licensing terms to include LGPL as an alternative license. It supported Qt 4 under the operating systems Linux/X11, Mac OS X, Microsoft Windows, Maemo and MeeGo, while the PySide community added support for Android.
PySide6 was released in December 2020. It added support for Qt 6 and removed support for all Python versions older than 3.6.
The project started out using Boost.Python from the Boost C++ libraries for the bindings. It later created its own binding generator named Shiboken, to reduce the size of the binaries and the memory footprint.
Hello, World! example
# Import PySide2 classes import sys from PySide2 import QtCore, QtWidgets # Create a Qt application app = QtWidgets.QApplication(sys.argv) # Create a Window mywindow = QtWidgets.QWidget() mywindow.resize(320, 240) mywindow.setWindowTitle('Hello, World!') # Create a label and display it all together mylabel = QtWidgets.QLabel(mywindow) mylabel.setText('Hello, World!') mylabel.setGeometry(QtCore.QRect(200, 200, 200, 200)) mywindow.show() # Enter Qt application main loop sys.exit(app.exec_())
- "PySide has been released". PySide – Python for Qt. August 18, 2009. Archived from the original on October 25, 2009.
- "PySide6 Release History". Python Package Index. Retrieved February 24, 2021.
- Maureira-Fredes, Cristián (December 10, 2020). "Qt for Python 6 released". Qt. The Qt Company.
- "PySide FAQ". Qt Wiki. July 31, 2017. Retrieved February 24, 2021.
- "PySide Downloads". Qt Wiki. February 16, 2018. Retrieved February 24, 2021.
- "PySide for Android guide". Qt Wiki. February 26, 2018. Retrieved February 24, 2021.
- "Qt for Python". Qt Wiki. December 16, 2020. Retrieved February 24, 2021.
- Knoll, Lars; Tismer, Christian (April 11, 2016). "Bringing pyside back to Qt Project". pyside-dev Google Group. Retrieved February 24, 2021.
- "Shiboken". Qt Documentation. The Qt Company. Retrieved February 24, 2021.
- "PySide Shiboken FAQ". Qt Wiki. June 5, 2016. Retrieved February 24, 2021.
- Official website
- Documentation on the Qt Documentation web site
- Qt for Python on the Qt wiki
- Differences Between PySide and PyQt on the Qt wiki