Overview
PySide6 6.2, released on October 3, 2021, is the official Qt for Python binding for Qt 6.2 LTS, providing a stable base for production applications.
Main Features
Qt 6.2 LTS
PySide6 6.2 provides access to all stabilized Qt 6.2 modules, including multimedia and 3D modules. The LTS version guarantees long-term support.
python
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QLabel
from PySide6.QtCore import Qt
app = QApplication(sys.argv)
window = QMainWindow()
window.setWindowTitle('PySide6 6.2 LTS')
label = QLabel('PySide6 6.2 - Qt 6.2 LTS')
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
window.setCentralWidget(label)
window.resize(400, 200)
window.show()
sys.exit(app.exec())
Improved tools
The pyside6-designer and pyside6-uic tools are improved for Qt 6.2 with better support for new widgets and properties.
python
from PySide6.QtWidgets import QApplication, QWizard, QWizardPage, QLabel
# Wizard with Qt 6.2 widgets
# app = QApplication([])
# wizard = QWizard()
# page1 = QWizardPage()
# page1.setTitle('Welcome')
# page1.setSubTitle('PySide6 6.2 Wizard')
# wizard.addPage(page1)
# wizard.show()
print('PySide6 6.2: improved tools for Qt 6.2')
