尝试根据您的程序修改此代码
self.im = QPixmap("./image.jpg")
self.label = QLabel()
self.label.setPixmap(self.im)
self.grid = QGridLayout()
self.grid.addWidget(self.label,1,1)
self.setLayout(self.grid)
self.setGeometry(50,50,320,200)
self.setWindowTitle("PyQT show image")
self.show()
查看此网页了解更多信息