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.