PDA

View Full Version : How to Add Layout to Scroll Area Widget in Qt Creator



gunturrohith
1st July 2017, 06:54
Hi i am trying to add multiple groupboxes for scrollArea through Qt creator ver - 2.4.1 but i was unable to see the scrollbars, the number of increase in groupboxes are adjusting on the layout but scroll bars are not appearing how can i add a vertical layout to scroll area in order to see the scroll bars. I have added the Vertical Layout manually even though i am failed to see the scroll bars.

Here are the screen shots of my creation hierarchy and application output.

http://img4.imagetitan.com/img.php?image=16_screenshotfrom2017-06-3017-43-29.png

http://img4.imagetitan.com/img.php?image=16_screenshotfrom2017-06-3017-43-41.png

http://img4.imagetitan.com/img.php?image=16_screenshotfrom2017-06-3017-44-23.png

Please guide me.

Thanks in advance,
Rohith.G

Shark
1st July 2017, 14:19
I have had a similar problem. The solution was to call QScrollArea::setWidgetResizable(true);
Then the scrollbar should appear.