Qt 6.11 is out! See what's new in the release
blog
QHBoxLayout changes the width of QLineEdit and QPushButton with size policy of "fixed"
-
@jronald
show some code please what you are doing exactly.
Do you maybe set the size-policy after you've added the widget to the layout? -
@jronald
show some code please what you are doing exactly.
Do you maybe set the size-policy after you've added the widget to the layout?I did it in the designer, for example:
- drag a
line editand apush buttonto a widget - change the size policies to
fixed - change the sizes arbitrarily for showing the problem more obvious later
- select both, right click, apply horizontal layout
- the sizes of the widgets will be resized
- drag a