QWidget::raise() or QMainWindow::activateWindow.
ActivateWindow is probably what you want but it will have "odd" effects on Windows boxes as if the app window isn't on top you'll get a "flasher" in the task bar instead. That is it won't actually raise the window to the top but show the user that the application requires attention.
The other trick might be to set the "Qt::WindowStaysOnTopHint" attribute on the window. e.g. p_mainWindow->setAttribute(Qt::WindowStaysOnTopHint);
Bookmarks