From 0fb0209e43f1d2d72e4a576cca5d3ef3ca8d6489 Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Fri, 14 May 2021 05:49:19 +0800 Subject: [PATCH] Revert "provide QApplication.exec() for PySide6 6.0" This reverts commit 3eb69e6d9b8b8ee46a75f96e6ebd732e9e2e0076. --- pyqtgraph/Qt.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyqtgraph/Qt.py b/pyqtgraph/Qt.py index eb5c6f32..68f6d4d5 100644 --- a/pyqtgraph/Qt.py +++ b/pyqtgraph/Qt.py @@ -334,10 +334,6 @@ if QT_LIB == PYSIDE6: self.setColorAt(pos, color) QtGui.QGradient.setStops = __setStops - if not hasattr(QtWidgets.QApplication, 'exec'): - # PySide6 6.0 forwards compatibility to PySide6 6.1 - QtWidgets.QApplication.exec = QtWidgets.QApplication.exec_ - if QT_LIB == PYQT6: # module.Class.EnumClass.Enum -> module.Class.Enum