Overview

PyQt6 6.4, released on October 10, 2022, updates the binding to Qt 6.4 with new widgets and graphics improvements.

Main Features

Qt 6.4

Qt 6.4 brings graphics rendering performance improvements and new modules like Qt HTTP Server.

python
import sys
from PyQt6.QtWidgets import QApplication, QMainWindow, QToolBar
from PyQt6.QtGui import QAction

app = QApplication(sys.argv)
window = QMainWindow()
window.setWindowTitle('PyQt6 6.4')

toolbar = QToolBar('Main')
action = QAction('Action', window)
toolbar.addAction(action)
window.addToolBar(toolbar)
# window.show()

Graphics improvements

The RHI rendering pipeline is optimized for better performance across graphics platforms (Vulkan, Metal, D3D).

python
from PyQt6.QtWidgets import QApplication, QGraphicsScene, QGraphicsView
from PyQt6.QtCore import Qt

app = QApplication([])
scene = QGraphicsScene()
scene.addRect(0, 0, 100, 100)
scene.addEllipse(50, 50, 100, 80)

view = QGraphicsView(scene)
view.setRenderHint(view.renderHints())
# view.show()

Sources