I guess you are creating a modal dialog, try this
void MyDialog:penMyForm()
{
setModal(false);
myForm->show();
}
void MyDialog:penMyForm()
{
setModal(false);
myForm = new QMainWindow;
myForm->show();
}
To copy to clipboard, switch view to plain text mode
Update: You can also make dialog as parent of QMainWindow, this way mainwindow till remain on top of dialog
void MyDialog:penMyForm()
{
setModal(false);
myForm->show();
}
void MyDialog:penMyForm()
{
setModal(false);
myForm = new QMainWindow(this);
myForm->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks