[RESOLVED] How to make a QSplitter the top Widget use always 60% of screen?
I have a QSplitter on my screen, and I have to QWidgets inside, one on the and other on the bottom...
So I need that always the TOP Qwidget use 60% of screen... How can I make that?
Thanks a lot.
If you need constant ratio. why you bother with QSplitter ? Just put those widgets in a horizontal layout and set stretch values as you like. (say 3,2)
I let the user adjust the screen, with the QSlitter! But at first show I need to start with 60% of screen on top and 40% for bottom...
The bottom widget is dynamic... sometimes can have 3 buttons, sometimes 2 or none button.
Set the stretch factor of the size policy to 6 for the top widget and 4 for the bottom one.
Thanks, After I test I return here if solve my problem.
Thanks, Works very Nice!