Hey, I currently have a qgridlayout like:
Row 1: QHBoxLayout( Widget – Widget – Widget )
Row 2: QHBoxLayout( Widget – Widget – Widget )
Row 3: QHBoxLayout( Widget – Widget – QVBoxLayout(QLabel – QLCDNumber))
Now all these layouts and the widgets inside them have the same size.
So for row 1: 33.33% / 33.33% / 33.33%
What I would like: 25% / 50% / 25% for all rows.
Is this possible?
Thank you!
edit:
I tried doing this with the middle widget:
middleWidgetRow1->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Ignored);
This gets me : 1% / 98% / 1%.
edit: Got it working with horizontal stretch!
↧