Details
Description
To convert C++ quintptr <-> Python int, PySide seems to use PyLong_AsUnsignedLong, PyLong_FromUnsignedLong, which are based on the unsigned long type, which is always 32-bit on Windows, while quintptr is 64-bit on a 64-bit system.
This caused a user to get an error
builtins.OverflowError: Python int too large to convert to C unsigned long
when passing a pointer-derived value (namely an id()) to QAbstractItemModel::createIndex.
Chat conversation that led us here
Note that this issue will not be reproducible on a non-Windows system or if your Python happens to never return an id(object()) >= 2**32