Unsolved Show and Hide Layout Size
-
hello, i have Layout.
If i do show in the button hide state, it will look like the picture above. Clicking in this state returns to the normal size. How can I fix it?
-
@Qt-Jo-Ha
Do you mean that your buttons grow vertically to fit the container layout when you hide one of them, and you'd rather they stayed at a fixed height? Or something else? What class are your buttons? -
The size of the button is fixed, and I want the layout to grow to fit the number of visible buttons.
-
@Qt-Jo-Ha
So what layout are you using and what properties have you set on it? If you have set fixed size on it then it won't do as you want. -
i used QVBoxLayout and just set the margins and spacing.
-
@Qt-Jo-Ha said in Show and Hide Layout Size:
i used QVBoxLayout and just set the margins and spacing.
It would be easier to help you if you show the QML code. Your drawing is nice but there are many ways to got this result!