QVBoxLayout - no stretch/expanding
General and Desktop
2
Posts
2
Posters
5.4k
Views
1
Watching
-
wrote on 9 Apr 2011, 18:42 last edited by
Hi,
I have a QScrollArea with a QBoxLayout. At runtime I insert widgets into the scroll area using insertWidget(0,widget). I want the widgets to be listed directly below each other, but instead they are centered with space around them. How can I change that?
Thanks for any hints,
Best regards,
Eddy
-
wrote on 9 Apr 2011, 18:59 last edited by
The space around them is controlled by the spacing parameter of the layout. Change that property in your layout to 0.
1/2