[Qt-interest] What is QDesktopWidget used for?

Richard Moore richmoore44 at gmail.com
Mon Dec 28 15:03:49 CET 2009


On Mon, Dec 28, 2009 at 1:33 PM, Kermit Mei <kermit.mei at gmail.com> wrote:
> What is QDesktop used for?

QDesktopWidget represents the desktop itself, you shouldn't construct
it directly instead use the factory method QApplication::desktop() to
get one. Once you've done that you can use it to get the geometries of
the various screens that are available. This is all covered in the
documentation for the widget, see
http://doc.trolltech.com/4.6/qdesktopwidget.html

Cheers

Rich.



More information about the Qt-interest-old mailing list