Answers for "pyqt5 image center"

0

pyqt5 image center

#Make sure to import PyQt5.QtCore first
self.label = QLabel(self,alignment=Qt.AlignCenter)
pixmap = QPixmap("image.png")
self.label.setPixmap(pixmap)
Posted by: Guest on March-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language