0

I'm implementing a image viewer based on the Image Viewer example (http://doc.trolltech.com/4.7-snapshot/widgets-imageviewer.html)

But I'm using the design mode for the interface.

A QLabel inside a QScrollBar QScrollArea. The image appears, but when I zoom, the bars never appear.

I found out the setValue() method -used in adjustScrollBar() method- from each scrollBar, never modifies its value (it's always 0). If that value was greather than 0, the bar would appear. In the original example, it does.

What am I missing in UI designer?? Thanks.

Mark A.
  • 193
  • 1
  • 3
  • 14
  • You should put your `QLabel` under `QScrollArea`. See this question http://stackoverflow.com/questions/10915215/pyqt-qt-how-to-stretch-an-image-in-qlabel-widget/10915341#10915341 – Ammar Jun 14 '12 at 05:57
  • Sorry, I meant QScrollArea where I put QScrollBar. – Mark A. Jun 14 '12 at 11:49

0 Answers0