Reputation: 25
I have a horizontal QSplitter
and 2 widgets. By default, both widgets take up 50% of the available height.
I would like my top widget to take, say, 80% of the space. Any simple way to do that ?
Upvotes: 1
Views: 1125
Reputation: 981
How about:
splitter.setStretchFactor(0, 1.6)
Note that you should call this method after the widgets being inserted in the QSplitter
.
Upvotes: 1