Quite often I find that I need to show and bring a window to a front. For example when the user attempts to reload the same document I simply bring up the old one. To do thi
this is a working "shortcut" :
widget->setWindowState(Qt::WindowActive) ;
You can couple it with the last Qt::WindowState of the window. This notation is not very explicit though.
Qt::WindowState