how to set the max vertical size of a "QHBoxLayout" embedded in a QWidget set as a grid?

  • my object heirarchy looks like this:

    0_1568220173737_Screen Shot 2019-09-11 at 9.40.58 AM.png

    and the visual geometry is this:

    0_1568220199115_Screen Shot 2019-09-11 at 9.40.30 AM.png

    but i do not want the two HBox's to be evenly distributed, i want the top one to be vertically much shorter, like this screen shot showing me dragging the bottom edge up a bit:

    0_1568220239244_Screen Shot 2019-09-11 at 9.40.53 AM.png

    but when i let go it snaps back to where it was, instead of having the bottom HBox expand to fill the exposed extra space.

    i see "layoutSizeConstraint" but i can't find documentation on how to use it

  • Lifetime Qt Champion


    I haven't used designer lately but I would go with the stretch factor. Set to one for the top part and two for the bottom to get started.

  • okay apparently, WYSI-NOT-WYG

    when i RUN the app, it sizes as expected


Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.