Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to Launch QQuickWindow at the top of all screens.
Forum Updated to NodeBB v4.3 + New Features

How to Launch QQuickWindow at the top of all screens.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
11 Posts 2 Posters 3.4k 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.
  • K Offline
    K Offline
    Krish
    wrote on last edited by
    #1

    Hello All,

    here we are working on infotainment, where we have Projection Screen for iPhone and Android, to work on this I need to send some touch events. so I want to load one transparent QML page on the top of the Projection Screen, but every time its loading at the bottom of the screen, please let me know if there is any solution.

    p3c0P 1 Reply Last reply
    0
    • K Krish

      Hello All,

      here we are working on infotainment, where we have Projection Screen for iPhone and Android, to work on this I need to send some touch events. so I want to load one transparent QML page on the top of the Projection Screen, but every time its loading at the bottom of the screen, please let me know if there is any solution.

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @Krish, AFAIK android OS doesnot have the traditional windowing system so I doubt that having multiple windows will work on it. On systems where it is supported setting Qt::WindowStaysOnTopHint flag should work.
      Sorry no idea about ios.

      157

      K 1 Reply Last reply
      0
      • p3c0P p3c0

        Hi @Krish, AFAIK android OS doesnot have the traditional windowing system so I doubt that having multiple windows will work on it. On systems where it is supported setting Qt::WindowStaysOnTopHint flag should work.
        Sorry no idea about ios.

        K Offline
        K Offline
        Krish
        wrote on last edited by
        #3

        Hi @p3c0, Thanks for the replay. I'm very new to QT n QML, as per my understanding you asking me to try with this Qt::WindowStaysOnTopHint?

        I'm using QQuickView *view; and loading the QML with
        view.showfullscreen(); and closing the QML with
        view.close();

        but still page loads at the bottom of the projection screen, but I need it at the top of the sacreen.

        please let me know if there is any fucntion in QQuickView related to this topic.

        Thanks in advance.

        p3c0P 1 Reply Last reply
        0
        • K Krish

          Hi @p3c0, Thanks for the replay. I'm very new to QT n QML, as per my understanding you asking me to try with this Qt::WindowStaysOnTopHint?

          I'm using QQuickView *view; and loading the QML with
          view.showfullscreen(); and closing the QML with
          view.close();

          but still page loads at the bottom of the projection screen, but I need it at the top of the sacreen.

          please let me know if there is any fucntion in QQuickView related to this topic.

          Thanks in advance.

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Krish How many windows are there in your application ?

          157

          K 1 Reply Last reply
          0
          • p3c0P p3c0

            @Krish How many windows are there in your application ?

            K Offline
            K Offline
            Krish
            wrote on last edited by Krish
            #5

            @p3c0 There are two QML windows, where I can place a black window at background of the projection screen and one transparent window which I need to place at foreground of the Projection Screen, which I can send touch events to Middle Ware.

            but both QML pages are focus at the background only.

            p3c0P 1 Reply Last reply
            0
            • K Krish

              @p3c0 There are two QML windows, where I can place a black window at background of the projection screen and one transparent window which I need to place at foreground of the Projection Screen, which I can send touch events to Middle Ware.

              but both QML pages are focus at the background only.

              p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by p3c0
              #6

              @Krish As I said earlier multiple windows is not supported on android. Can't you have one root window using QQuickView and call different QML's inside the main QML ?

              157

              K 1 Reply Last reply
              0
              • p3c0P p3c0

                @Krish As I said earlier multiple windows is not supported on android. Can't you have one root window using QQuickView and call different QML's inside the main QML ?

                K Offline
                K Offline
                Krish
                wrote on last edited by
                #7

                @p3c0 Thanks for your kind reply. Yes, I'm doing the same, calling one QML page inside main.qml and using QQuickView invoking main.qml, and I tried with only one window (only main.qml) which focusing at below the Projection Screen.

                p3c0P 1 Reply Last reply
                0
                • K Krish

                  @p3c0 Thanks for your kind reply. Yes, I'm doing the same, calling one QML page inside main.qml and using QQuickView invoking main.qml, and I tried with only one window (only main.qml) which focusing at below the Projection Screen.

                  p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #8

                  @Krish Then try setting z value higher for the component which you want on top of the others.

                  157

                  K 1 Reply Last reply
                  0
                  • p3c0P p3c0

                    @Krish Then try setting z value higher for the component which you want on top of the others.

                    K Offline
                    K Offline
                    Krish
                    wrote on last edited by Krish
                    #9

                    @p3c0 Yes we are following Z order, from the MW Team we are getting the Android screen they are using Screen Manager(OPEN GL), to pop up at the HMI side. once I got the screen I need to place the Transparent QML on the Top of the android screen, and I'm wondering, the Focus is on the QML Page which is background, its not on the Android Screen, I can send Touch Events and Some Button Events also through QML page, but if have to show any pop up QML's on the top of the android screen its going on the background, not on the foreground, there I'm facing an issue.

                    Sorry for the late reply.

                    Thanks in advance.

                    p3c0P 1 Reply Last reply
                    0
                    • K Krish

                      @p3c0 Yes we are following Z order, from the MW Team we are getting the Android screen they are using Screen Manager(OPEN GL), to pop up at the HMI side. once I got the screen I need to place the Transparent QML on the Top of the android screen, and I'm wondering, the Focus is on the QML Page which is background, its not on the Android Screen, I can send Touch Events and Some Button Events also through QML page, but if have to show any pop up QML's on the top of the android screen its going on the background, not on the foreground, there I'm facing an issue.

                      Sorry for the late reply.

                      Thanks in advance.

                      p3c0P Offline
                      p3c0P Offline
                      p3c0
                      Moderators
                      wrote on last edited by
                      #10

                      @Krish What do you mean by android screen ?

                      157

                      K 1 Reply Last reply
                      0
                      • p3c0P p3c0

                        @Krish What do you mean by android screen ?

                        K Offline
                        K Offline
                        Krish
                        wrote on last edited by
                        #11

                        @p3c0 We are Projecting the Android screen on our infotainment, which can operate Phone screen on Car's Infotainment. I mean the Android screen is the screen which is projecting on the infotainment.

                        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