Skip to content

Commit 48f9cfc

Browse files
committed
Update PyQt check to allow for PyQt6 or PySide6
Note tested against PyQt6
1 parent 2cb2bcf commit 48f9cfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

blacs/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ def closeEvent(self, event):
146146

147147
def changeEvent(self, event):
148148

149-
# theme update only for PySide6
150-
if QT_ENV == 'PySide6' and event.type() == QEvent.Type.ThemeChange:
149+
# theme update only for PySide6/PyQt6
150+
if QT_ENV.endswith('6') and event.type() == QEvent.Type.ThemeChange:
151151
for widget in self.findChildren(QWidget):
152152
# Complex widgets, like TreeView and TableView require triggering styleSheet and palette updates
153153
widget.setStyleSheet(widget.styleSheet())

0 commit comments

Comments
 (0)