Details
Description
Shiboken seems to be confused when Python3 int are actually long.
item = QGraphicsRectItem()
item.setData(QGraphicsItem.UserType, 1)
works correctly, but
item = QGraphicsRectItem()
item.setData(QGraphicsItem.UserType, 1<<32)
raises an exception OverFlowError with the following message in the console:
RuntimeWarning: libshiboken: Overflow: Value 4294967296 exceeds limits of type [signed] "i" (4bytes)
Attachments
For Gerrit Dashboard: PYSIDE-648 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
228062,4 | Use PyLong instead of PyInt for QVariant | 5.9 | pyside/pyside-setup | Status: MERGED | -2 | 0 |