Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Embedded - Window always above
Forum Updated to NodeBB v4.3 + New Features

Qt Embedded - Window always above

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 1.9k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    boustrophedon
    wrote on last edited by
    #1

    Hello,
    I'm developping a project for Qt Embedded 4.8 where I have too applications running, one should always be above the other in all cases. I know there is the Qt::WindowStaysOnTopHint flag, but if both applications set it, then they behave as if none of them had it, which is pretty normal.
    So, does anybody have an idea on how to do that ? Any hint on a way to modify QWS to specify that one application has to stay on top ?

    Many thanks for your thoughts,

    Ivan

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      There's something not clear, why would both set that flag since you know only one should have it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        boustrophedon
        wrote on last edited by
        #3

        Good question, I should have explained better: I have control only over one of the 2 apps, so I can not know that the second app will not use the WindowStaysOnTopHint flag.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you might have to modify QWSServer to handle things the way you want

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • B Offline
            B Offline
            boustrophedon
            wrote on last edited by
            #5

            That was exactly the sense of my question : any hint on a way to modify QWS to specify that one application has to stay on top ?

            Thank you in advance if you have any pointer to give me !

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              One idea (not tested though) would be to add some sort of registration function where you give the application ID that must stay on top and draw it last

              Hope it helps

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • B Offline
                B Offline
                boustrophedon
                wrote on last edited by
                #7

                Thank you! That's indeed the direction I thought I would take. I've never looked into the QWS code, any idea where to start searching in order to do this type of modification ?

                Many thanks for you help,

                Ivan

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  I would go for the qwindowsystem* files

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved