Auto-expanding layout with Qt-Designer

前端 未结 5 534
借酒劲吻你
借酒劲吻你 2020-12-12 09:01

I\'m using the Qt Designer.

I want to create a QVBoxLayout which will automatically expand to fill the whole window.

The layout of the QVB

5条回答
  •  自闭症患者
    2020-12-12 09:40

    Once you have add your layout with at least one widget in it, select your window and click the "Update" button of QtDesigner. The interface will be resized at the most optimized size and your layout will fit the whole window. Then when resizing the window, the layout will be resized in the same way.

提交回复
热议问题