QVBoxLayout - no stretch/expanding
eddyilg last edited by
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,
andre last edited by
The space around them is controlled by the spacing parameter of the layout. Change that property in your layout to 0.