how should i scale the image to fit to the size of dock widget.?
i have used scaling in pixmap.
here is my code
self.edit_image=str(self.imagePath)
pic=QtGui.QPixmap(self.edit_image)
width=self.dockWidget_4.geometry().width()
height=self.dockWidget_4.geometry().height()
self.label.setPixmap(pic.scaled(width,height,QtCore.Qt.IgnoreAspectRatio,QtCore.Qt.SmoothTransformation))
self.label.setScaledContents(True)
is some other way out?
thanking you
--
View this message in context:
http://www.nabble.com/image-tool-tp25020464p25020464.html
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt