void MainFrame::editOptions() { QDialog *dialog = new QDialog(this); dialog->setAttribute(Qt::WA_DeleteOnClose); Ui::OptionsDialog ui; ui.setupUi(dialog); dialog->show(); }
void WindowsApp::OnAppOptions() { QWinWidget *win = new QWinWidget(theApp.m_pMainWnd); win->showCentered(); QDialog *dialog = new QDialog(win); Ui::OptionsDialog ui; ui.setupUi(dialog); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); }