Details
Description
PySide2 Output:
PySide2 5.15.2 c.signal: True push_button.clicked: False
PyQt5 Output:
PyQt5 5.15.2 c.signal: True push_button.clicked: True
Source:
try: from PySide2 import __version__ from PySide2 import QtCore from PySide2 import QtWidgets print('PySide2', __version__) Signal = QtCore.Signal except ImportError: from PyQt5 import QtCore from PyQt5 import QtWidgets print('PyQt5', QtCore.PYQT_VERSION_STR) Signal = QtCore.pyqtSignal class C(QtCore.QObject): signal = Signal() def main(): application = QtWidgets.QApplication([]) c = C() print('c.signal:', c.signal == c.signal) push_button = QtWidgets.QPushButton() print('push_button.clicked:', push_button.clicked == push_button.clicked) main()
Attachments
Issue Links
- relates to
-
PYSIDE-2140 PySide2 5.15.2 introduces regression with respect to bound signal equality and identity
- Closed
- resulted in
-
PYSIDE-1730 Reg->6.2.2: Signal/Method namespace clashing with multiple inheritance
- Closed
-
PYSIDE-1751 No longer possible to override signal emission type?
- Closed
For Gerrit Dashboard: PYSIDE-1431 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
360992,8 | Fix equality test for inherited signals | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
379062,2 | Fix equality test for inherited signals | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
385819,4 | PySide6: build multiple inheritance pass-through for Signals | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
386241,4 | PySide6: build multiple inheritance pass-through for Signals | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
386351,1 | PySide6: build multiple inheritance pass-through for Signals | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: ABANDONED | 0 | 0 |
388984,5 | signal: Fix equality test for inherited signals, update | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
389826,4 | signal: Fix equality test for inherited signals, update | 6.2 | pyside/pyside-setup | Status: ABANDONED | -1 | 0 |