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?
Bookmarks