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