-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
In mkQApp(), a UniqueConnection is made to a free-standing function to handle light and dark modes.
pyqtgraph/pyqtgraph/Qt/__init__.py
Line 348 in 20bc47e
| def mkQApp(name=None): |
This will no longer work in PySide6 > 6.7.2, as UniqueConnection will only be allowed on methods of QObject instances.
An example to demonstrate the change in behavior.
On PySide6 6.7.2, "HELLO" will be printed.
On development versions of PySide6, "HELLO" does not get printed.
from PySide6 import QtCore, QtWidgets
def name_changed(name):
print('name_changed to', name)
app = QtWidgets.QApplication([])
# conntype = QtCore.Qt.ConnectionType.AutoConnection
conntype = QtCore.Qt.ConnectionType.UniqueConnection
app.objectNameChanged.connect(name_changed, type=conntype)
app.objectNameChanged.connect(name_changed, type=conntype)
app.dumpObjectInfo()
app.setObjectName('HELLO')Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels