[Qt-interest] Multiple X servers

andrew.m.goth at l-3com.com andrew.m.goth at l-3com.com
Fri Jan 23 22:02:28 CET 2009


Bradley T. Hughes wrote:
> andrew.m.goth at l-3com.com wrote:
> > "Specifies the screen on which to place the new window. Any 
> > valid screen name may be used, even one associated with a different 
> > display. Defaults to the same screen as its parent."
> 
> This can be done by passing the return value of 
> QDesktopWidget::screen() as the parent to QWidget. For example, to 
> place a QMainWindow on screen 1 (instead of the default which is 
> usually screen 0), do this:
> 
> QMainWindow *mainWindow = new QMainWindow(QDesktopWidget::screen(1));

Does this require Xinerama?

-- 
Andy Goth
<amgoth at link.com>




More information about the Qt-interest-old mailing list