Vertical Splitter
-
Hi, I was learning Qt by a tutorial about vertical and horizontal splitter.
what I do is to add two push buttons and then select them and add splitter between them. for the horizontal splitter there is no problem, and it works fine, however for the vertical splitter I can't do it.
Here is a screenshot attached that shows my dialog.ui and the app. I don't have any idea why it's not working for the two vertical push buttons. it's just fixed and not resizing.
I am using Qt 6.5, and thanks for help,
Meysam.
-
Hi, I was learning Qt by a tutorial about vertical and horizontal splitter.
what I do is to add two push buttons and then select them and add splitter between them. for the horizontal splitter there is no problem, and it works fine, however for the vertical splitter I can't do it.
Here is a screenshot attached that shows my dialog.ui and the app. I don't have any idea why it's not working for the two vertical push buttons. it's just fixed and not resizing.
I am using Qt 6.5, and thanks for help,
Meysam.
@imanipourmeysa Buttons have a fixed vertical size policy by default, so the splitter container takes a fixed amount of space and can't resize the buttons. To make them resizable change their vertical size policy to something else e.g. minimum.
-
@imanipourmeysa Buttons have a fixed vertical size policy by default, so the splitter container takes a fixed amount of space and can't resize the buttons. To make them resizable change their vertical size policy to something else e.g. minimum.
@Chris-Kawa , Thank you. that's the solution.
-