Home · All Classes · All Functions ·

QSystemDisplayInfo Class Reference

The QSystemDisplayInfo class provides access to display information from the system. More...

    #include <QSystemDisplayInfo>

Inherits QObject.


Public Functions

QSystemDisplayInfo ( QObject * parent = 0 )
~QSystemDisplayInfo ()

Static Public Members

int colorDepth ( int screenNumber )
int displayBrightness ( int screenNumber )

Additional Inherited Members


Detailed Description

The QSystemDisplayInfo class provides access to display information from the system.


Member Function Documentation

QSystemDisplayInfo::QSystemDisplayInfo ( QObject * parent = 0 )

Constructs a QSystemDisplayInfo object with the given parent.

QSystemDisplayInfo::~QSystemDisplayInfo ()

Destroys the QSystemDisplayInfo object.

int QSystemDisplayInfo::colorDepth ( int screenNumber )   [static]

Returns the color depth of the screen with the index screenNumber, in bits per pixel, or 0 if the screen is not found.

See also QDesktopWidget::screenCount().

int QSystemDisplayInfo::displayBrightness ( int screenNumber )   [static]

Returns the display brightness of the screen with index screenNumber in %, 1 - 100 scale.

Depending on platform, displayBrightness may not be available due to differing hardware, software or driver implementation. In which case this will return 0.

See also QDesktopWidget::screenCount().


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.2