Solved Form layout
-
I have a form which has 5 rows of various inputs, I'm using a QGridLayout for the main layout, there are two additional QTableViews at the bottom of the form which are populated according to the selections of the 5 input rows above.
Initially when the input rows are not populated I hide the table views, this causes the 5 rows to spread out to fill the vertical space.
Is there a way to maintain the positions of the 5 rows at the top of the form as if the table views were present?
-
@SPlatten Add a vertical layout, add your form layout to it and then the spacer...
-
@SPlatten Add a vertical spacer
-
@jsulm , thank you, I've read similar suggestions in other posts, however one of the solutions states not to put the spacer into the layout but outside of the layout. The layout is set-up with:
setLayout(pgrdLayout);
How would I add the spacer outside of the layout ?
-
@SPlatten Add a vertical layout, add your form layout to it and then the spacer...