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
No need for such complication. This is enough :
widget->raise(); widget->show();
By the way, you can call show() once, and unless you hide() it, there are no needs to call show() again.
show()
hide()