try this
void MainWindow::openSubWindow()
{
SubWindowWidget *w = new SubWindowWidget(customer);
w->setAttribute(Qt::WA_DeleteOnClose);
w->setAttribute(Qt::WA_ShowModal);
w->show();
// QDialog diag(0, Qt::Window );
// diag.setSizeGripEnabled(true);
// QHBoxLayout * lay = new QHBoxLayout;
// lay->addWidget(&w);
// diag.setLayout(lay);
// diag.exec();
}
void MainWindow::openSubWindow()
{
SubWindowWidget *w = new SubWindowWidget(customer);
w->setAttribute(Qt::WA_DeleteOnClose);
w->setAttribute(Qt::WA_ShowModal);
w->show();
// QDialog diag(0, Qt::Window );
// diag.setSizeGripEnabled(true);
// QHBoxLayout * lay = new QHBoxLayout;
// lay->addWidget(&w);
// diag.setLayout(lay);
// diag.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks