In my Qt-application I open a URL in the default-browser. Afterwards I want to bring the main-window of my application to the front again.
I tried all approaches I c
I did it like this:
{ this->show(); // Restore from systray this->setWindowState(Qt::WindowState::WindowActive); // Bring window to foreground }
assuming "this" is your QMainWindow. Worked like a charm.
this
QMainWindow