Ok, I just made a simple example to check this, and it does not work 
int main(int argc, char *argv[])
{
//dlg1 is shown
GoDlg* dlg=new GoDlg;
dlg->show();
// dlg2 is not shown
GoDlg* dlg2=new GoDlg(0);
dlg2->setParent(dlg);
dlg2->show();
/*
// dlg2 is shown when parent is given in constructor
GoDlg* dlg2=new GoDlg(dlg);
dlg2->show();
*/
app.exec();
}
int main(int argc, char *argv[])
{
//dlg1 is shown
QApplication app(argc, argv);
GoDlg* dlg=new GoDlg;
dlg->show();
// dlg2 is not shown
GoDlg* dlg2=new GoDlg(0);
dlg2->setParent(dlg);
dlg2->show();
/*
// dlg2 is shown when parent is given in constructor
GoDlg* dlg2=new GoDlg(dlg);
dlg2->show();
*/
app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks