Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QScrollArea widget is not expanding with a Flowlayout

I have a ui with a QScrollArea Widget. The QScrollArea uses a Flowlayout. My problem is when I add widgets to my layout the scroll area begins to scroll and does not expand when it has room to expand. I want the scroll area to expand to its limit before the scroll bar appears first.

How can I get the scroll area to expand before the scroll bar appears?

like image 598
andre Avatar asked Jan 31 '13 20:01

andre


1 Answers

can you try doing setWidgetResizable(true) for your QScrollArea

ScrollArea->setWidgetResizable(true);
like image 97
Vinod Paul Avatar answered Sep 20 '22 06:09

Vinod Paul