This was how I had to do it, if anyone cares. Thanks ntp! I just decided to stop arguing about the close button, and use a Close Activate Window button on the MDI Toolbar area.
void nnDBSMainWindow::formView()
{
nnDBSPieceViewForm *pieceViewForm = new nnDBSPieceViewForm;
QMdiSubWindow *subWindow1 = new QMdiSubWindow;
subWindow1->setWidget(pieceViewForm);
MDIArea->addSubWindow(subWindow1);
subWindow1->setAttribute(Qt::WA_DeleteOnClose);
subWindow1->show();
subWindow1->resize(650, 600);
}
void nnDBSMainWindow::formView()
{
nnDBSPieceViewForm *pieceViewForm = new nnDBSPieceViewForm;
QMdiSubWindow *subWindow1 = new QMdiSubWindow;
subWindow1->setWidget(pieceViewForm);
MDIArea->addSubWindow(subWindow1);
subWindow1->setAttribute(Qt::WA_DeleteOnClose);
subWindow1->show();
subWindow1->resize(650, 600);
}
To copy to clipboard, switch view to plain text mode
Thanks again to everyone! I don't know where I would be without this forum.
Bookmarks