Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.12.2
-
None
-
Windows, Python 3.7.2 64-bit
Description
When passing an integer to a signal outside of int32 boundaries, an OverflowError is raised. The same code runs on PyQt5 with no issues.
Full simplified example:
try: from PyQt5 import QtCore Signal = QtCore.pyqtSignal except ImportError: from PySide2 import QtCore Signal = QtCore.Signal class SomeClass(QtCore.QObject): signal = Signal(int) def test(self): int32_max = 2147483647 self.signal.emit(int32_max + 1) # OverflowError occurs here. sh = SomeClass() sh.test()