QHBoxLayout changes the width of QLineEdit and QPushButton with size policy of "fixed"
Unsolved
General and Desktop
-
@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 edit
and apush button
to 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