[PyQt] image tool
vidyadhar
ankurtilve2003 at yahoo.com
Tue Aug 18 09:18:33 BST 2009
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.
More information about the PyQt
mailing list