Location : Home >> Wikipedia >> PySide

Search Wikipedia

PySide

From Wikipedia, licensed under CC BY-SA 4.0. View the original article on Wikipedia.

Computer program in the Python language

PySide
Original authorThe Qt Company (as part of Nokia)
DeveloperThe Qt Company
ReleaseAugust 18, 2009; 17 years ago (2009-08-18)[1]
Stable release
6.12.0[2] Edit this on Wikidata / 8 October 2026; 52 days ago (8 October 2026)
Written inPython
Operating systemLinux/X11, macOS, Windows
LicenseLGPL
Websitepyside.org qt.io/qt-for-python

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. The project can also be cross compiled to embedded systems like Raspberry Pi,[3][4] and Android devices.[5]

Contents

History

By 2009, Nokia, the then owners of the Qt toolkit, wanted Python binding available under the LGPL license. Nokia failed to reach an agreement with Riverbank Computing, the developers of the PyQt Python binding.[6] In August, Nokia released PySide. It provided similar functionality, but under the LGPL.[7][8] 'Side' is Finnish for binding.[6]

There have been three major versions of PySide:[9]

  • 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,[1] then the owner of the Qt toolkit, after it failed to reach an agreement with PyQt developers Riverbank Computing[10] 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,[11] while the PySide community added support for Android.[12]

PySide2 was started by Christian Tismer to port PySide from Qt 4 to Qt 5 in 2015.[13] The project was then folded into the Qt Project.[14] It was released in December 2018.[13]

PySide6 was released in December 2020. It added support for Qt 6 and removed support for all Python versions older than 3.6.[9]

The project started out using Boost. Python from the Boost C++ libraries for the bindings. It later created its own binding generator named Shiboken,[15] to reduce the size of the binaries and the memory footprint.[16][when?]

"Hello, world!" example

import sys
from PySide6 import QtCore, QtWidgets

# Create a Qt application
app = QtWidgets.QApplication(sys.argv)

# Create the main window
main_window = QtWidgets.QWidget()
main_window.resize(320, 240)
main_window.setWindowTitle('"Hello, world!" example')

# Create a label for text in the main window
label = QtWidgets.QLabel(main_window)
label.setText("Hello, world!")
label.setGeometry(QtCore.QRect(100, 100, 100, 100))

# Show the main window
main_window.show()

# Enter the main loop and exit when done
sys.exit(app.exec())

See also

References

  1. ^ a b "PySide has been released". PySide – Python for Qt. 18 August 2009. Archived from the original on 25 October 2009.
  2. ^ "PySide6 6.12.0".
  3. ^ "Qt for Python Cross compilation". Qt. The Qt Company. 13 April 2022.
  4. ^ "Qt for Python details on the new 6.3 release". Qt. The Qt Company. 13 April 2022.
  5. ^ "Taking Qt for Python to Android". Qt. The Qt Company. 13 April 2022.
  6. ^ a b Fitzpatrick, Martin (21 June 2019). "PyQt5 vs PySide2: What's the difference between the two Python Qt libraries?". Python GUIs. Retrieved 25 June 2022.
  7. ^ "FAQ – PySide – Python for Qt". Pyside.org. Archived from the original on 11 January 2012. Retrieved 3 September 2009.
  8. ^ "PySide has been released – PySide – Python for Qt". Pyside.org. 18 August 2009. Archived from the original on 25 October 2009. Retrieved 3 September 2009.
  9. ^ a b Maureira-Fredes, Cristián (10 December 2020). "Qt for Python 6 released". Qt. The Qt Company.
  10. ^ "PySide FAQ". Qt Wiki. 31 July 2017. Archived from the original on 6 August 2020. Retrieved 24 February 2021.
  11. ^ "PySide Downloads". Qt Wiki. 16 February 2018. Retrieved 24 February 2021.
  12. ^ "PySide for Android guide". Qt Wiki. 26 February 2018. Retrieved 24 February 2021.
  13. ^ a b "Qt for Python". Qt Wiki. 16 December 2020. Retrieved 24 February 2021.
  14. ^ Knoll, Lars; Tismer, Christian (11 April 2016). "Bringing pyside back to Qt Project". pyside-dev Google Group. Retrieved 24 February 2021.
  15. ^ "Shiboken". Qt Documentation. The Qt Company. Retrieved 24 February 2021.
  16. ^ "PySide Shiboken FAQ". Qt Wiki. 5 June 2016. Retrieved 24 February 2021.

External links

Low-level platform-specific
On AmigaOS
On Classic Mac OS, macOS
On Windows
On Unix
On BeOS, Haiku
On Android
CLI
Low Level Cross-platform
C
Java
High-level, platform-specific
On AmigaOS
On Classic Mac OS, macOS
Object Pascal
Objective-C, Swift
C++
CLI
On Windows
CLI
C++
Object Pascal
On Unix and X11
High-level, cross-platform
C
C++
Objective-C
CLI
Adobe Flash
Go
Haskell
Java
JavaScript
Common Lisp
Lua
Pascal
Object Pascal
Perl
PHP
Python
Ruby
Tcl
XML
shell
Dart


Stub icon

This free and open-source software article is a stub. You can help Wikipedia by adding missing information.

Text is from Wikipedia, licensed under CC BY-SA 4.0. A link to the original article is included on every page. Original article. Search Wikipedia on nomadlouie.com.