需求
qt 父界面,如何打开子界面窗口
解决
void MainWindow::on_action_2_triggered()
{
// 科室
DepartmentManage * department = new DepartmentManage(test_info_, this);
department->setAttribute(Qt::WA_DeleteOnClose);
department->setWindowTitle("科室管理");
department->exec();
}