virtual multi display
-
I have several virtual display like :1.0, :2.0..., my widget Window is launched at :1.0, but i would like to switch/flipping the Window to be shown in :2.0 instead by pressing a key.
I did search online, looks like that i need make connection to both X server (:1.0 and :2.0), but how the events are handled and so far? i'm a newbie in Qt.
thanks,
Eric. -
Hi and welcome to devnet,
What does QGuiApplication::screens return ?
-
@SGaist said in virtual multi display:
Hi and welcome to devnet,
What does QGuiApplication::screens return ?
it only return 1 screen.
-
I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.
Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.
-
@SGaist said in virtual multi display:
I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.
Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.
Thanks for the info.
One guy mentioned: “virtual X-server on top of multiple other X servers”, can this be a possible solution? is there such an virtual X-server? -
@SGaist said in virtual multi display:
I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.
Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.
i installed the Xdmx which can be a headless daemon, right? is there instruction/forum on how to use/configure it? thanks.
-
@Eric-Yin I would start with the tool documentation.
-
@SGaist said in virtual multi display:
@Eric-Yin I would start with the tool documentation.
Tried Xdmx, Qt Apps(even a simple widget without any code) always make Xdmx crash (Segmentation fault at address 0xc); xlogo got displayed at the back-end display without window frame.