[PyQt] image with scrollbars in a qlabel how ?

David Boddie dboddie at trolltech.com
Wed Nov 14 13:12:45 GMT 2007


On Wed Nov 14 08:13:55 GMT 2007, Joachim Schmitz wrote:

> David Boddie schrieb:

> > You might find it a useful learning experience to port this example to
> > PyQt if it hasn't already been done. Hint, hint... ;-)
>
> Yes it has already been done, and I took this as a guidline for my 
> code, but my code never shows the scollbars :(.

Sorry, I didn't read your code properly. Taking another look at it, I noticed
this:

  self.imageLabel.setScaledContents(True)

What happens if you don't do this, or if you set it to False?

David
-- 
David Boddie
Lead Technical Writer, Trolltech ASA


More information about the PyQt mailing list