Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Widget always on top

    General and Desktop
    2
    5
    1251
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • QT-static-prgm
      QT-static-prgm last edited by

      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

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        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

        1 Reply Last reply Reply Quote 1
        • QT-static-prgm
          QT-static-prgm last edited by

          Why not?? i tried using Qt3DWidnows instead of QWidgets under the labels, but didn't worked.

          How do other overlay manage that??

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @QT-static-prgm last edited by

            @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. :)

            1 Reply Last reply Reply Quote 0
            • QT-static-prgm
              QT-static-prgm last edited by

              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??

              1 Reply Last reply Reply Quote 0
              • First post
                Last post