I am using Pyside2. I get the error
AttributeError: 'PySide2.QtCore.Qt.Alignment' object has no attribute 'testFlag'
for this piece of code
if (self.m_alignment.testFlag(Qt.AlignTop)):
The alignment is defined thus:
m_alignment = Qt.AlignTop | Qt.AlignRight
Is there something I am doing wrong? Or is there another way to check for an alignment flag in PySide2? Been stuck at this for some time.