[PyQt] Re: how to show interactive Picture

Markus Feldmann feldmann_markus at gmx.de
Tue Feb 10 23:04:55 GMT 2009


David Boddie schrieb:
> Here, because you are using a QLabel to show the image, it should
> automatically appear correctly in the QScrollArea.
> 
> (Aside: If you create your own custom widget (by subclassing QWidget), you
> have to reimplement the sizeHint() method as well as the paintEvent() method
> to make it appear correctly in a QScrollArea. By using a standard widget
> designed to show an image, you neatly avoid this problem.)

Maybe this is intersting for me, because i want to zoom in and out into
the image. But i posted this Problem in a new Thread. :-)

> This should work. I'll post comments on your earlier message about the
> Basic Drawing example in a separate message. You might also find it
> useful to look at the Image Viewer example (widgets/imageviewer).
You mean the Link:
file:///usr/share/doc/python-qt4-doc/html/widgets-imageviewer.html

The Package under Debian is named <qt4-doc-html> and is round about 
80Mbyte big.

Regards Markus



More information about the PyQt mailing list