pyqt5 label center align code example Example: qlabel alignment center python self.label.setAlignment(Qt.AlignCenter)