Label's position changes when showing additional button
-
I have a gui like this:

The pushbutton is sometimes visible sometimes not through program. I want to show my middle vertical layout always at middle(center). How can i do that? When there is no pushbutton visible in program, its in center. When pushbutton show up, it goes a little bit left.
-
Hi,
Try to use three layouts
one for the textlabel on the left
one for the middle texts
one for the button and the label on the rightthe size of three layouts are always equal.
[EDIT] Works in Designer, but not on preview and on launch :(
I think the easy way is to replace the hidden button by a QWidget of the same size. -
Hi,
Try to use three layouts
one for the textlabel on the left
one for the middle texts
one for the button and the label on the rightthe size of three layouts are always equal.
[EDIT] Works in Designer, but not on preview and on launch :(
I think the easy way is to replace the hidden button by a QWidget of the same size. -
M masa4 has marked this topic as solved on
-
Hi,
Try to use three layouts
one for the textlabel on the left
one for the middle texts
one for the button and the label on the rightthe size of three layouts are always equal.
[EDIT] Works in Designer, but not on preview and on launch :(
I think the easy way is to replace the hidden button by a QWidget of the same size.