Re: Window focus question
May be you can explicitly specify the z-value of your dialog
Re: Window focus question
when you create the dialog,you must give it a parent。like this:
QMessageBox msbox(mainform);
the message box will show at center of mainform.
Re: Window focus question
Just for those who might experience the same problem...
The difficulty was that the dialog was actually launching before the main window because of where the call to it was - in mainwindow.cpp
After moving the call to main.cpp, after the mainwindow was shown, no problem. It shows up on top.