Results 1 to 2 of 2

Thread: Qt two X11 Display

  1. #1
    Join Date
    Mar 2012
    Location
    china
    Posts
    54
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Qt two X11 Display

    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?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,543
    Thanks
    13
    Thanked 1,577 Times in 1,506 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt two X11 Display


Similar Threads

  1. QMenu display with delay. Or not display else
    By stepchik in forum Newbie
    Replies: 1
    Last Post: 10th September 2013, 15:06
  2. Display QWebView in "Display Widgets"?
    By Niunzin in forum Newbie
    Replies: 5
    Last Post: 9th January 2013, 22:26
  3. Replies: 8
    Last Post: 6th May 2010, 11:17
  4. SVG Display
    By fca_neo in forum Newbie
    Replies: 0
    Last Post: 31st December 2008, 01:31
  5. XML display in Qt
    By aamer4yu in forum Qt Programming
    Replies: 7
    Last Post: 7th November 2007, 20:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.