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
try this:
viewer.setWindowState( (windowState() & ~Qt::WindowMinimized) | Qt::WindowActive); viewer.raise(); // for MacOS viewer.activateWindow(); // for Windows
it work in my project ( in my project viewer is QMainWindow): https://github.com/iptton/Rythem .