void MainWindow::on_archFormButton_clicked()[pre]{[/pre][pre] ArchivesForm* af=new ArchivesForm(this->centralWidget());[/pre][pre] af->show();[/pre][pre]}[/pre][pre] [/pre][pre]如果ArchivesForm继承自mainwindows 则直接弹出窗口;[/pre][pre]如果ArchivesForm继承自widget 则窗口在主窗口里面,但是大小不能随主窗口改变;[/pre][pre]到底要怎样才能够能让新建的窗口适应主窗口大小?用layout 能做到吗?[/pre][pre] [/pre]