Details
Description
Hello, there seems to be some enum casting going on that confuses shiboken.
role = QtCore.Qt.ItemDataRole.TextAlignmentRole val = QtCore.Qt.AlignmentFlag.AlignCenter item.setData(val, role)
gives the traceback:
RuntimeWarning: libshiboken: Overflow: Value PySide2.QtCore.Qt.AlignmentFlag.AlignCenter exceeds limits of type [signed] "i" (4bytes).
item.setData(val, role)
OverflowError
...but an integer value (132) directly works:
item.setData(int(val), role)
This seems like it's the same thing as the QGraphicsRectItem() issue in: https://bugreports.qt.io/browse/PYSIDE-648