Ela*_*ich 202 layout qt qt-designer
我正在使用Qt Designer.
我想创建一个QVBoxLayout会自动扩展以填充整个窗口.
QVBoxLayout遗体的布局是固定的.
如何QVBoxLayout通过设计师扩展并填充整个窗口?
Gre*_*g S 344
QVBoxLayout在Qt Designer中创建后,右键单击窗口小部件/对话框/窗口的背景(而不是QVBoxLayout父窗口小部件),然后从上下文菜单底部选择" 布局" - >"网格布局".现在QVBoxLayout应该拉伸以适应窗口,并在调整整个窗口大小时自动调整大小.