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. Showing gui of two qml applications at the same time
QtWS25 Last Chance

Showing gui of two qml applications at the same time

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 866 Views
  • 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 am developing qml applications for raspberry pi.
    Is it possible to show the gui of two qml applications at the same time?

    At the moment both applications have a ApplicationWindow - widget.
    If I try to show both applications I get the following error:

    EGL Error : Could not create the egl surface: error = 0x3003
    

    Kind regards,
    MHermann

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      EGL supports only one top-level window.

      To get more you need to use a window manager. In case of RPi it will be X11 (xcb platform plugin) or Wayland. Note that Qt apps are rather slow when run under X11 on a raspberry pi.

      (Z(:^

      M 1 Reply Last reply
      3
      • sierdzioS sierdzio

        EGL supports only one top-level window.

        To get more you need to use a window manager. In case of RPi it will be X11 (xcb platform plugin) or Wayland. Note that Qt apps are rather slow when run under X11 on a raspberry pi.

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

        @sierdzio :
        Thanks for your answer.
        Yesterday I did some tests.
        This error does not occur everytime. It does only (sometimes) occur, when I start app1 after app2. If I start app2 after app1 all is ok. Sometimes both applications also run and show their gui if I start app1 after app2.
        Maybe I have to mention that actually I am running both apps from Qt creator debugger.

        What do I have to do to use X11? Do I have to install some special packages?

        sierdzioS 1 Reply Last reply
        0
        • M MHermann

          @sierdzio :
          Thanks for your answer.
          Yesterday I did some tests.
          This error does not occur everytime. It does only (sometimes) occur, when I start app1 after app2. If I start app2 after app1 all is ok. Sometimes both applications also run and show their gui if I start app1 after app2.
          Maybe I have to mention that actually I am running both apps from Qt creator debugger.

          What do I have to do to use X11? Do I have to install some special packages?

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @MHermann said in Showing gui of two qml applications at the same time:

          What do I have to do to use X11? Do I have to install some special packages?

          Check if you have xcb plugin in your Qt installation (the cross-compiled one), if you do then no special config is necessary - just run your apps from X11 session (so, logged in to GUI, not console mode on your Pi), and add this flag when you start them:

          yourAppExe -platform xcb
          

          (Z(:^

          M 1 Reply Last reply
          1
          • sierdzioS sierdzio

            @MHermann said in Showing gui of two qml applications at the same time:

            What do I have to do to use X11? Do I have to install some special packages?

            Check if you have xcb plugin in your Qt installation (the cross-compiled one), if you do then no special config is necessary - just run your apps from X11 session (so, logged in to GUI, not console mode on your Pi), and add this flag when you start them:

            yourAppExe -platform xcb
            
            M Offline
            M Offline
            MHermann
            wrote on last edited by
            #5

            @sierdzio : Ok. Thanks
            Any idea why this error depends on the order I start these two applications?

            sierdzioS 1 Reply Last reply
            0
            • M MHermann

              @sierdzio : Ok. Thanks
              Any idea why this error depends on the order I start these two applications?

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @MHermann said in Showing gui of two qml applications at the same time:

              @sierdzio : Ok. Thanks
              Any idea why this error depends on the order I start these two applications?

              No idea, sorry.

              (Z(:^

              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