As Of now I am using this way to display an image but I want to be able to use QtWidet that can dislay most kinds of image formats like jog,png,tiff,bmp, dpx, exr, cin etc..
self.
imageLabel = QtGui.
QLabel()self.
imageLabel.
setBackgroundRole(QtGui.
QPalette.
Base)self.imageLabel.setScaledContents(True)
self.
imageLabel.
setPixmap(QtGui.
QPixmap.
fromImage(image
))
self.imageLabel = QtGui.QLabel()
self.imageLabel.setBackgroundRole(QtGui.QPalette.Base)
self.imageLabel.setSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
self.imageLabel.setScaledContents(True)
self.imageLabel.setPixmap(QtGui.QPixmap.fromImage(image))
To copy to clipboard, switch view to plain text mode
Bookmarks