#Make sure to import PyQt5.QtCore first self.label = QLabel(self,alignment=Qt.AlignCenter) pixmap = QPixmap("image.png") self.label.setPixmap(pixmap)