Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to QVBoxLayout setFixedWidth
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.
khryleption last edited by
Try with QSplitter and function QSplitter::setStretchFactor
Thanks i'll give it a go
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