qt5 模态对话框设置

void MainWindow::open()
{
QDialog *dialog = new QDialog;
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->setWindowTitle(tr("Hello, dialog!"));
dialog->show();
}

posted on 2015-05-28 23:56  areu-me  阅读(430)  评论(0编辑  收藏  举报

导航