0

I am using QT designer and I have a parent widget with two child widgets. The layout of parent is set as 'layout vertically'. It looks like :

enter image description here

What I want to do is push the lower child to the bottom and upper widget to occupy the rest of the space. Here's how it should look like:

enter image description here

I tried by setting the layout alignment of the lower widget as 'Bottom', it gets pushed to the bottom but the upper widget remians as it, is just like :

enter image description here

  • 2
    Select the parent widget containing the layout, then scroll down in the property editor until you reach the layout section, and set proper [stretch factors](https://doc.qt.io/qt-5/layout.html#stretch-factors) for the two items. Alternatively, set the vertical size policy of the top widget to "Expanding" and that of the bottom one to "Maximum". – musicamante Apr 06 '23 at 22:59

0 Answers0