Question to QGridLayout
-
Hi,
In my dockable I use gridlayout which looks like this:
All column widgets are QLabel.
Labels from second and fourth column have horizontal size policy of "MinimumExpanding".
GridLayout is configured with layoutColumnStretch of 0,1,0,1,0
Labels of first column have maximum width, so I guess, layout column 0 is wider than contained widgets.I tried to change layoutColumnStretch to 0,50,10,50,0 - but it makes no difference.
How can I close the gap between first and second column?
Doesn't look nice actually. -
Yes, I have only 4 columns, but - for whatever reason - qtcreator wants 5 column stretch values. When I remove one, it adds it again.
Beside that, you suggestion does not do the trick. It just increases the right column and I don't want that column be stretched.
The best would be, if gridlayout would get rid of the maximum width of the first column. Maybe I'd have to write my own layout.