Python | PyQt5からPyQt6へ移行(setAlignment編)AttributeError: type object ‘Qt’ has no attribute ‘AlignCenter’
AttributeError: type object 'Qt' has no attribute 'AlignCenter'の対処方法を説明する。■結論 [PyQt5]:setAlignment(Qt.AlignCenter) [PyQt6]:setAlignment(Qt.AlignmentFlag.AlignCenter)