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. Two qml apps, but only one qml app that is handling the painting of the GUIs ?
Forum Updated to NodeBB v4.3 + New Features

Two qml apps, but only one qml app that is handling the painting of the GUIs ?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 2 Posters 1.6k 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by
    #1

    Hi all,

    I have two qml applications.
    Is it possible to start qml app 1 inside qml app 2? I mean, that qml app 2 is handling the whole painting of the GUIs, but qml app 1 can run independent (like a widget).
    The goal is that both qml apps are running simultaneous, but only one qml app is handling the painting of the GUIs.

    Kind regards,
    MHermann

    raven-worxR 1 Reply Last reply
    0
    • M MHermann

      Hi all,

      I have two qml applications.
      Is it possible to start qml app 1 inside qml app 2? I mean, that qml app 2 is handling the whole painting of the GUIs, but qml app 1 can run independent (like a widget).
      The goal is that both qml apps are running simultaneous, but only one qml app is handling the painting of the GUIs.

      Kind regards,
      MHermann

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @MHermann said in Two qml apps, but only one qml app that is handling the painting of the GUIs ?:

      qml app 1 inside qml app 2

      what exactly is a qml app in your eyes? Where does the one end and the other start?
      Do you mean 2 separate qml files running in parallel and communicating with each other?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @MHermann said in Two qml apps, but only one qml app that is handling the painting of the GUIs ?:

        qml app 1 inside qml app 2

        what exactly is a qml app in your eyes? Where does the one end and the other start?
        Do you mean 2 separate qml files running in parallel and communicating with each other?

        M Offline
        M Offline
        MHermann
        wrote on last edited by
        #3

        @raven-worx : No I mean two complete separate processes. Both written with qml and C++.

        raven-worxR 1 Reply Last reply
        0
        • M MHermann

          @raven-worx : No I mean two complete separate processes. Both written with qml and C++.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @MHermann said in Two qml apps, but only one qml app that is handling the painting of the GUIs ?:

          No I mean two complete separate processes. Both written with qml and C++

          so since they are different processes where should be the problem?!
          But i believe is still don't get what you want to achieve.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          M 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @MHermann said in Two qml apps, but only one qml app that is handling the painting of the GUIs ?:

            No I mean two complete separate processes. Both written with qml and C++

            so since they are different processes where should be the problem?!
            But i believe is still don't get what you want to achieve.

            M Offline
            M Offline
            MHermann
            wrote on last edited by
            #5

            @raven-worx : The problem is the following. If app1 is running and then app2 is started, I can show the GUI of app2 in front of app1. app2 is not using the whole screen. For the human it looks like it is only one app. Now app1 (which is in background) wants to show a popup. Now I have the problem that app1 is in front of app2 and therefore the popup of app1 is not visible.
            Because of this problem I want to embedd the GUI of app2 in app1. Or give the control of app2 GUI to app1. I need a possibility to handle the z-order of two separate processes.

            raven-worxR 1 Reply Last reply
            0
            • M MHermann

              @raven-worx : The problem is the following. If app1 is running and then app2 is started, I can show the GUI of app2 in front of app1. app2 is not using the whole screen. For the human it looks like it is only one app. Now app1 (which is in background) wants to show a popup. Now I have the problem that app1 is in front of app2 and therefore the popup of app1 is not visible.
              Because of this problem I want to embedd the GUI of app2 in app1. Or give the control of app2 GUI to app1. I need a possibility to handle the z-order of two separate processes.

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              @MHermann
              so those 2 apps are completely independent of each other and do not communicate?

              Is maybe the window raise() method already enough for you?

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              M 2 Replies Last reply
              0
              • raven-worxR raven-worx

                @MHermann
                so those 2 apps are completely independent of each other and do not communicate?

                Is maybe the window raise() method already enough for you?

                M Offline
                M Offline
                MHermann
                wrote on last edited by MHermann
                #7

                @raven-worx : Yes. They are completely independent. They only communicate via dbus.
                Does this method open the window on top of ALL windows, also on top of windows of other applications? Or only on top of windows of the application which opens window?
                But I will have a look at window raise() method.

                1 Reply Last reply
                0
                • raven-worxR raven-worx

                  @MHermann
                  so those 2 apps are completely independent of each other and do not communicate?

                  Is maybe the window raise() method already enough for you?

                  M Offline
                  M Offline
                  MHermann
                  wrote on last edited by
                  #8

                  @raven-worx : Now I tried to use a Window{} and open it with raise(). But then I get the following error message:
                  "EGLFS: OpenGL windows cannot be mixed with others."

                  This application is running on a Raspberry Pi and I am using QQmlApplicationEngine and ApplicationWindow{} as root qml.
                  Any suggestions what exactly is the reason for this error and can I avoid it?

                  raven-worxR 1 Reply Last reply
                  0
                  • M MHermann

                    @raven-worx : Now I tried to use a Window{} and open it with raise(). But then I get the following error message:
                    "EGLFS: OpenGL windows cannot be mixed with others."

                    This application is running on a Raspberry Pi and I am using QQmlApplicationEngine and ApplicationWindow{} as root qml.
                    Any suggestions what exactly is the reason for this error and can I avoid it?

                    raven-worxR Offline
                    raven-worxR Offline
                    raven-worx
                    Moderators
                    wrote on last edited by
                    #9

                    @MHermann
                    right EGLFS only supports one window.
                    In case i will be hard to manage 2 separate applications in this context. You should use the Wayland or X platform in this case.

                    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                    If you have a question please use the forum so others can benefit from the solution in the future

                    M 1 Reply Last reply
                    1
                    • raven-worxR raven-worx

                      @MHermann
                      right EGLFS only supports one window.
                      In case i will be hard to manage 2 separate applications in this context. You should use the Wayland or X platform in this case.

                      M Offline
                      M Offline
                      MHermann
                      wrote on last edited by MHermann
                      #10

                      @raven-worx : Ah okay. Thank you.
                      Is it hard to install / use the Wayland or X platform?
                      Do I only have to install some packages?

                      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