st.img.save('./test.png', 'PNG')
img = Image.open('./test.png')
self.imgQ = ImageQt(img)
pixMap = QPixmap.fromImage(self.imgQ)
It shows typeError here:
pixMap = QPixmap.fromImage(self.imgQ)
TypeError: 'PySide.QtGui.QPixmap.fromImage' called with wrong argument types:
PySide.QtGui.QPixmap.fromImage(ImageQt)
Supported signatures:
PySide.QtGui.QPixmap.fromImage(PySide.QtGui.QImage, PySide.QtCore.Qt.ImageConversionFlags = Qt.AutoColor)
I think the ImageQt
would convert the Image
to QImage
. Can anyone tell me how to solve this?