pyqt5 image center

Solutions on MaxInterview for pyqt5 image center by the best coders in the world

showing results for - "pyqt5 image center"
Pietro
19 Aug 2017
1#Make sure to import PyQt5.QtCore first
2self.label = QLabel(self,alignment=Qt.AlignCenter)
3pixmap = QPixmap("image.png")
4self.label.setPixmap(pixmap)