For anyone not catching the news: PySide6, based on Qt 6.1, is out. A lot of bugs have been fixed, so you might want to upgrade.
This new release finally has exec()
now, as stated HERE:
Considering that we are not supporting Python 2, for PySide 6.x, we noticed that our workaround function exec_() was not needed anymore, so now you can safely use exec()
.
@martin, I guess you can safely remove the exec_() or exec()
checks in the pyqtconfig code that imports things based on whether PySide6 or PyQt6
is used.
Furthermore, Riverbank Computing Limited has released PyQt6, based on Qt 6.1.
I had to tweak my codebase for it to run on PyQt6 v6.1. Enum type names have to be fixed if upgrading from PyQt6 v6.0 to v6.1:
from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QDialogButtonBox
Qt.ItemFlags --> Qt.ItemFlag
Qt.TextInteractionFlags --> Qt.TextInteractionFlag
Qt.QDialogButtonBox.StandardButtons --> Qt.QDialogButtonBox.StandardButton
etc.
Basically, PyQt6 v6.1 now adopts the same singular form for enum type names just like PySide6 has adopted in v6.0. So, @martin, I guess you can also safely remove the enum type name checks in the pyqtconfig code, based on whether PySide6 or PyQt6
is used.