QMainWindow::setWindowFlags(Qt::WindowStaysOnTopHint) Works on all versions of Windows except Windows 10.
In Windows 10, the user can switch the desktop using the shortcut keys: Windows + Tab and create a new desktop. Thus, the user can leave the Qt application.
I want to know how to stay on top in Windows 10.
source
share