Results 1 to 4 of 4

Thread: X11 two GPU

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

    Default X11 two GPU

    Display displays[2];

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

    [...]

    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?

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

    Default Re: X11 two GPU

    None, this has nothing to do with Qt.

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

    Default Re: X11 two GPU

    Quote Originally Posted by ChrisW67 View Post
    None, this has nothing to do with Qt.
    How can I show QWidget between two X11 Server?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: X11 two GPU

    Two separate instances of your Qt program with different values of the DISPLAY environment variable or -display command line option. QApplication binds to a single X display. You can pass a particular display (non-default) to the constructor but you can only have one QApplication object in the program.

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
  •  
Qt is a trademark of The Qt Company.