QT里怎么让控件在HV布局中置顶

2025-03-30 14:00:43
推荐回答(1个)
回答1:

在设计器中加一个或者多个布局(layout) , 然后在代码中把布局设置给对话框就可以了。 this->setLayout( ui.layout ).