代码:
m_dialog = new QDialog(this); //QDialog* m_dialog m_dialog->setWindowTitle("我是子窗口"); m_dialog->show();
效果: