Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #image #center
ADD COMMENT
Topic
Name
6+9 =