from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QGraphicsPixmapItem, QGraphicsScene
def showImage(self):
frame = QImage("img/entrance1.png")
pix = QPixmap.fromImage(frame)
item = QGraphicsPixmapItem(pix)
scene = QGraphicsScene()
scene.addItem(item)
self.graphicsView.setScene(scene)
pyqt5 QGraphicsView 显示图片
最新推荐文章于 2024-05-13 22:05:55 发布