qsplitter children sizes
-
Hi
You could just use designer
and then take the c++ code.
Code is in setupUI() -
@user4592357
Hi
Im not sure what goes wrong. the concept seems to work.
do u have mutiple widgets pr side in splitter of what is difference to the mini test? -
@user4592357
Hi
yes, the Splitter adjust a bit to the sizehints of the widgets if no min/max is set.
So the issue is that they become smaller when inserted into splitter ? -
@user4592357
but do you set min/max on them or how do you control size ? -
@user4592357
you set the min/max on the widgets?
it works here.
-
@user4592357
Do you also try to make them less wide than the width of the Splitter ?
I tried some values of max HEIGHT and it seems to like it just fine.You should NOT set maximum width as it will change the splitter.
-
Ok. but if no max height, it will try to use all space.
You can also use vertical stretch to say top gets X % of space, lower get rest
but im not sure how you want it distributed. -
@user4592357
Ok, vertical stretch can do that.
just set top to 8 and lower to 2 ( and no max height) -
@user4592357
it cant both share with stretch and have fixed size.
But then again , it can to some degree yes, as not to become bigger / smaller but
since it would be a concrete value it would not work in all cases.
Like maximize window.