1Qter豆
最佳答案例如:
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget(ui->label, 1);
layout->addWidget(ui->comboBox, 5);
layout->addWidget(ui->pushButton, 1);
ui->centralWidget->setLayout(layout);
不过部件的最终大小,还有部件的最小大小有关
| ||
2015-2-1 15:52:49
显示全部楼层
| ||
2015-1-31 23:25:08
显示全部楼层
| ||
2015-2-1 14:49:05
显示全部楼层
| |
2015-2-2 23:27:51
显示全部楼层
| |