Vue d'ensemble

PySide6 6.6, publie le 11 janvier 2024, aligne le binding officiel Qt for Python sur Qt 6.6 avec de nouvelles fonctionnalites graphiques.

Fonctionnalites principales

Alignement Qt 6.6

PySide6 6.6 expose les nouvelles API Qt 6.6, notamment les ameliorations du module QtQuick et le support ameliore des ecrans haute densite.

python
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton
from PySide6.QtCore import Slot

app = QApplication(sys.argv)
window = QMainWindow()
window.setWindowTitle('PySide6 6.6')
button = QPushButton('Cliquez', window)
window.setCentralWidget(button)
window.show()
sys.exit(app.exec())

Module QtGraphs

Le nouveau module QtGraphs remplace QtDataVisualization avec des performances ameliorees pour les graphiques 3D.

python
from PySide6.QtWidgets import QApplication
from PySide6.QtCharts import QChart, QLineSeries

series = QLineSeries()
series.setName('Donnees')
for x in range(20):
    series.append(x, x * 1.5)

chart = QChart()
chart.addSeries(series)
chart.setTitle('PySide6 6.6 Chart')

Sources