hmmmm, with PySide2 only, on Python 3.11.0a7:
>>> int(QtCore.Qt.AlignmentFlag.AlignHorizontal_Mask | QtCore.Qt.AlignmentFlag.AlignVertical_Mask)
TypeError: 'PySide2.QtCore.Qt.AlignmentFlag' object cannot be interpreted as an integer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: <class 'int'> returned a result with an exception set
but with Python 3.10.4:
>>> int(QtCore.Qt.AlignmentFlag.AlignHorizontal_Mask | QtCore.Qt.AlignmentFlag.AlignVertical_Mask)
511
Is that a bug in PySide2 or Python 3.11?
28 April 2022
Christian Tismer-Sperlingtext not yet in the index
The fact that we got some kudos from the PyPy team.