I am writing a flight simulator application. For that my Qt Application window should stay on top of the flight simulator application window.
The flight simulators (P3D, FSX, XPlane) offer 2 different window modes, i.e. "windowed" and "full screen". The windowed modes are no problem, I can just set Qt::WindowStaysOnTopHint
for my window and it works. However, it does not work for the XPlane fullscreen mode (but does for P3D/FSX).
I have no idea what XPlane fullscreen mode really does, only that it uses OpenGL. Obviously my window looses focus when I click into the XPlane Window. On Windows I can get it back on top with ALT+TAB
I have tried (triggered by timer) widget->activateWindow();
with no result. Are there any more "tricks" I could try.