PDA

View Full Version : several questions about QScrollArea



Sheng
4th June 2009, 14:48
1. I use QLabel and QScrollArea to show an image, however, when I change image size in QLabel (very large image), QScrollArea only show part of the image, any idea?

2. I want to raise a button on top of QScrollArea (Zoom in-out button), but it does not work. Any ideas?

3. It seems when I add QLabel into QScrollArea, I can not use QLabel independently. Is that right?

Thank you for your reply.

Sheng
4th June 2009, 16:59
1. I use QLabel and QScrollArea to show an image, however, when I change image size in QLabel (very large image), QScrollArea only show part of the image, any idea?

2. I want to raise a button on top of QScrollArea (Zoom in-out button), but it does not work. Any ideas?

3. It seems when I add QLabel into QScrollArea, I can not use QLabel independently. Is that right?

Thank you for your reply.

1 has been solved after adding setWidgetResizable( true ). Any idea of 2?