Widget always on top
-
Hi,
after i fixed my qtimer problem and the semitransparent background, there is still one problem left.
I want my widget ALWAYS on top.
I already Qt::WindowStaysOnTopHint and that makes it to stay always over all windows. But games do not work. So if i play the game in frameless window mod, it does work. But not in Fullscreen. But for the internetexplorer in Fullscreen, it does work again.So i searched a bit around and found out that it's a thing of DirectX/OpenGL. I hoped to fix it by using QOpenGlWidget instead of QWidget under my labels (thanks again @mjirou for that semi transparent trick), but that does not work.
My code: https://git.rwth-aachen.de/carstenf/qtTsOverlay/tree/master
-
Hi
I dont think normal Qt windows can be on top of fullscreen games.
Its likely you need DirectX/opengl hooks to do so
http://stackoverflow.com/questions/11810854/opengl-directx-hook-similar-to-fraps -
Why not?? i tried using Qt3DWidnows instead of QWidgets under the labels, but didn't worked.
How do other overlay manage that??
-
Why not?? i tried using Qt3DWidnows instead of QWidgets under the labels, but didn't worked.
How do other overlay manage that??
@QT-static-prgm said in Widget always on top:
How do other overlay manage that??
No idea. Try to find open source one and see what it does. :)
-
i just thought about that problem and did some research. I found out that i need to "hack" the d3d9 file for directx9. But that way i need to do a hack for each DirectX version and OpenGL.
And i think there is an easier way. Look at the GeforceExperience Overlay. It doesn't only work on Games, it even works on the desktop. So does anybody know how they did that??