Qt 6.12 LTS is out! See what's new in the release
blog
Height of QWidget containing two QLabels
-
I've got a widget using a vertical layout that contains two labels.
The height for each label is 16 according to designer but the widget ends up 52 high.
Where did the remaining 20 pixels go?
How to adjust things so the widget only takes (say) 6 pixels more that the sum of the heights of its contents?
Thanks
David -
I've got a widget using a vertical layout that contains two labels.
The height for each label is 16 according to designer but the widget ends up 52 high.
Where did the remaining 20 pixels go?
How to adjust things so the widget only takes (say) 6 pixels more that the sum of the heights of its contents?
Thanks
David -
@Perdrix
Look at the contents margins and spacing default values for layout in the designer. -
P Perdrix has marked this topic as solved on