With QVBoxLayout and a fixed height window adding one widget is in middle of window

15 Views Asked by At

When I set the height of my window and add one widget to the window it is vertically in the middle of the height. I totally do not want this. I have heard that setSpacing(0) on the layout can fix this. It does not. I to that to the layout of the window before adding the widget. What am I missing? I am very surprised and not at all happy that this seems to be default behavior. It also makes a mess when I have multiple widgets and remove some as everything else adjusts to fill the vertical space. Is there some setting I can turn off to remove this behavior?

0

There are 0 best solutions below