[Qt-interest] Multi-head API?

Josiah Bryan jbryan at productiveconcepts.com
Mon Oct 19 15:00:57 CEST 2009


http://doc.trolltech.com/4.5/qdesktopwidget.html

	QDesktopWidget *d = QApplication::desktop();
	int ns = d->numScreens();

	for(int screenNum = 0; screenNum < ns; screenNum ++)
	{
		QRect geom = d->screenGeometry(screenNum);

		// do whatever with geom
	}



Murray Cumming wrote:
> Is there any API in Qt to discover the available physical screens and
> the available configured displays? Likewise, is there any API I can use
> to discover what display a window is on and to say that a particular
> window should be on a particular screen?
> 
> I'm hoping for equivalents to GTK+'s GdkScreen and GdkDisplay objects,
> http://library.gnome.org/devel/gdk/stable/GdkScreen.html
> http://library.gnome.org/devel/gdk/stable/GdkDisplay.html
> and to functions such as gtk_window_set_screen():
> http://library.gnome.org/devel/gtk/unstable/GtkWindow.html#gtk-window-set-screen
> 

-- 

-=-=-=-=-=-=-=-=-=-=-=-=-
Josiah Bryan
Productive Concepts, Inc.
jbryan at pciint.com
(765) 964-6009, ext. 224




More information about the Qt-interest-old mailing list