add QApplication.exec() to Qt5 bindings
This commit is contained in:
parent
3b32e27083
commit
2dad9862cb
@ -273,6 +273,13 @@ if QT_LIB in [PYQT5, PYQT6, PYSIDE2, PYSIDE6]:
|
||||
QtGui.QApplication.setGraphicsSystem = None
|
||||
|
||||
|
||||
if QT_LIB in [PYQT5, PYSIDE2]:
|
||||
# Some constructs are getting deprecated in Qt6
|
||||
# recreate the Qt6 structure
|
||||
|
||||
QtWidgets.QApplication.exec = QtWidgets.QApplication.exec_
|
||||
|
||||
|
||||
if QT_LIB in [PYQT6, PYSIDE6]:
|
||||
# We're using Qt6 which has a different structure so we're going to use a shim to
|
||||
# recreate the Qt5 structure
|
||||
|
Loading…
Reference in New Issue
Block a user