How to QVBoxLayout setFixedWidth
Unsolved
Qt for Python
-
Hello Guys
I have a main layout comprising of 2 sub layouts leftlayout and rightlayout. They are both QVBoxLayouts and i would like to the widths to 30% for the laeftlayout and 70% for the rightlayout.
Any suggestions or tips would be appreciated.
Thanks
Simon
-
Hi,
Try with QSplitter and function QSplitter::setStretchFactor -
Thanks i'll give it a go
-
Hi,
Unless you want them to be movable, use the stretch factor parameter when adding your sub-layout to your main layout.
-
Hi,
Unless you want them to be movable, use the stretch factor parameter when adding your sub-layout to your main layout.
@SGaist Thanks i will give that a try