Shrinking widgets proportionally
Hi, I have a widget window that contains a GraphicsView and a widget and they are in a vertical layout. The problem I have is when I shrink the window vertically the View shrinks to it's minimal height before the widget even start shrinking.. I would like if they both shrink at the same time.. you know.. how can I control the order in which they shrink and the magnitude of it??
Set the vertical size policy to 'expanding' in both widgets and then set the vertical stretch value to 1 in both of them.
You can control the ratio they occupy space via the stretch value, eg. if you want the first one to always take 1/3 of the space then set its value to 1 and the other one to 2.
Ok thx that works