The QSystemDisplayInfo class provides access to display information from the system. More...
#include <QSystemDisplayInfo>
Inherits: QObject.
This class was introduced in Qt Mobility 1.0.
enum | BacklightState { BacklightStateUnknown, BacklightStateOff, BacklightStateDimmed, BacklightStateOn } |
enum | DisplayOrientation { Unknown, Landscape, Portrait, InvertedLandscape, InvertedPortrait } |
QSystemDisplayInfo ( QObject * parent = 0 ) | |
~QSystemDisplayInfo () | |
QSystemDisplayInfo::BacklightState | backlightStatus ( int screen ) |
float | contrast ( int screen ) |
int | getDPIHeight ( int screen ) |
int | getDPIWidth ( int screen ) |
QSystemDisplayInfo::DisplayOrientation | orientation ( int screen ) |
int | physicalHeight ( int screen ) |
int | physicalWidth ( int screen ) |
void | orientationChanged ( QSystemDisplayInfo::DisplayOrientation orientation ) |
int | colorDepth ( int screenNumber ) |
int | displayBrightness ( int screenNumber ) |
The QSystemDisplayInfo class provides access to display information from the system.
Warning: This class can only be used from the main thread, since it has been implemented using GUI functionality.
This enum describes the state of the Backlight.
Constant | Value | Description |
---|---|---|
QSystemDisplayInfo::BacklightStateUnknown | -1 | Error, no, or unknown Backlight state. |
QSystemDisplayInfo::BacklightStateOff | 0 | Backlight is turned off. |
QSystemDisplayInfo::BacklightStateDimmed | 1 | Backlight has been dimmed. |
QSystemDisplayInfo::BacklightStateOn | 2 | Backlight is on. |
This enum describes the orientation of the default window.
Constant | Value | Description |
---|---|---|
QSystemDisplayInfo::Unknown | 0 | Unknown orientation or error. |
QSystemDisplayInfo::Landscape | 1 | Landscape is wider than high. |
QSystemDisplayInfo::Portrait | 2 | Portrait is higher than wide. |
QSystemDisplayInfo::InvertedLandscape | 3 | Landscape that is inverted. |
QSystemDisplayInfo::InvertedPortrait | 4 | Portrait that is inverted. |
Constructs a QSystemDisplayInfo object with the given parent.
Destroys the QSystemDisplayInfo object.
Returns whether the QSystemDisplayInfo::BacklightState for the screen screen.
This function was introduced in Qt Mobility 1.2.
Returns the color depth of the screen with the index screenNumber, in bits per pixel. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.0.
See also QDesktopWidget::screenCount().
Returns the current contrast of the screen screen, from 0 to 1. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.2.
See also QDesktopWidget::screenCount().
Returns the display brightness of the screen with index screenNumber, in 1 - 100 scale. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.0.
See also QDesktopWidget::screenCount().
Returns the dpi (Dot Per Inch) of the height os screen. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.2.
See also QDesktopWidget::screenCount().
Returns the current dots per inch (DPI) for the width of screen. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.2.
See also QDesktopWidget::screenCount().
Returns the orientation of the UI QDesktopWidget for screen.
This function was introduced in Qt Mobility 1.2.
See also QDesktopWidget::screenCount().
This signal is emitted when QDesktopWidget's orientation has changed to orientation.
Returns the physical height of the screen in millimeters. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.2.
See also QDesktopWidget::screenCount().
Returns the physical width of screen in millimeters. -1 is returned if not available or on error.
This function was introduced in Qt Mobility 1.2.
See also QDesktopWidget::screenCount().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.