I have a grid layout that contains 2 vbox layouts
each vbox layout contains a QTableWidget.
As it stands the space in the grid layout is shared equally between the two vbox's
However I want to have the first vbox to have 2/3 of the space but cannot seem to get it to work.
I have played with the layout stretch factors but cannot seem to find the correct solution
Please can someone give me some hints.
In the beginning i found the stretch factor pretty odd as im used to %
but its quite easy.
The sum of the number is the total (100%) so you simply assign a value to each
col/row that says how many of the total.
so in this case it get 2 from 3. ( 2+1)
That has clarified some things.
Can the same be done with a vertical layout?
Yes they also have stretch factor.
Here top get 3 from 4
I tried but get this
The widgets take the same space
Did you set any min/max values on the Tables ?
It works fine here
You can try the test sample just to be sure it works with your installation
Thats seems to be the problem
Thanks for your help
Ok super. if you restrict widget, then layout will obey the limit.
please mark as solved if your happy.