how to center an item in pyqt5 code example Example: qlabel alignment center python self.label.setAlignment(Qt.AlignCenter)