PDA

View Full Version : Qt two X11 Display



waiter
10th November 2013, 07:40
Display displays[2];

displays[0] = XOpenDisplay(":0.0");
displays[1] = XOpenDisplay(":1.0");

//displays[0] = XOpenDisplay(":0.0");
//displays[1] = XOpenDisplay(":0.1");

window[0] = XCreateSimpleWindow(displays[0], XDefaultRootWindow(displays[0]),
0, 0, width, height, 0, 0, 0);
window[1] = XCreateSimpleWindow(displays[1], XDefaultRootWindow(displays[1]),
0, 0, width, height, 0, 0, 0);


however i don't understand this: on a system with two X11 servers (two gpus) without xinerama, if i want that window[0] goes to the first xserver and the second xserver, what functions should i call with Qt to show QWidget on both screens? can Qt Open two X11 Display in one Application?

ChrisW67
10th November 2013, 20:42
Please do not cross post 56861