📜  pyqt5 图像中心 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:43.232000             🧑  作者: Mango

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