Showing gui of two qml applications at the same time
-
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 -
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.
-
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.
@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?
-
@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?
@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
-
@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
-
@sierdzio : Ok. Thanks
Any idea why this error depends on the order I start these two applications?@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.