Unsolved Two qml apps, but only one qml app that is handling the painting of the GUIs ?
-
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 -
@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? -
@raven-worx : No I mean two complete separate processes. Both written with qml and C++.
-
@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. -
@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. -
@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?
-
@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. -
@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? -
@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. -
@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?