Qt.py
Qt.py copied to clipboard
QtCore.QSignalBlocker
QtCore.QSignalBlocker is not available when importing QtCore using from Qt import QtCore
Unfortunately QSignalBlocker is not in the Qt4 bindings, so this can't be fixed for the current 1.4.* releases. It also looks like it wasn't part of the older PySide2 builds we were using to build common membership from, though it is included in the current PySide2 5.15 builds.
However, in the upcoming drop of Qt4 support it will get added. To work around this you can use QtSiteConfig.
Here is an extract of the membership between Qt4,Qt5,Qt6 showing which bindings have QSignalBlocker.
QtCore
| Class | PyQt4 4.11.4 py-2.7.11 | PyQt5 5.15.11 py-3.10.10 | PyQt5 5.6 py-2.7.11 | PyQt6 6.7.1 py-3.11.9 | PySide 1.2.4 py-2.7.11 | PySide2 2.0.0~alpha0 py-2.7.11 | PySide2 5.15.2.1 py-3.10.10 | PySide6 6.5.3 py-3.11.9 | Potentially Misplaced |
|---|---|---|---|---|---|---|---|---|---|
| QSignalBlocker | X | X | X | X | X |