QSystemDisplayInfo Class Reference
The QSystemDisplayInfo class provides access to display information from the system. More...
#include <QSystemDisplayInfo>
Public Types
enum | DisplayOrientation { Unknown, Landscape, Portrait, InvertedLandscape, InvertedPortrait } |
Public Functions
Static Public Members
Detailed Description
The QSystemDisplayInfo class provides access to display information from the system.
Member Type Documentation
enum QSystemDisplayInfo::DisplayOrientation
This enum describes the current orientation of the display.
|
Constant | Value | Description |
QSystemDisplayInfo::Unknown | 0 | Orientation could not be determined. |
QSystemDisplayInfo::Landscape | 1 | Orientation is in landscape. |
QSystemDisplayInfo::Portrait | 2 | Orientation is in portrait. |
QSystemDisplayInfo::InvertedLandscape | 3 | Orientation is landscape inverted. |
QSystemDisplayInfo::InvertedPortrait | 4 | Orientation is portrait inverted. |
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.
See also QDesktopWidget::screenCount().
float QSystemDisplayInfo::contrast ( int screen )
Returns the current contrast of the screen screen.
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().
int QSystemDisplayInfo::getDPIHeight ( int screen )
Returns the dpi (Dot Per Inch) of the height os screen.
See also QDesktopWidget::screenCount().
int QSystemDisplayInfo::getDPIWidth ( int screen )
Returns the current dots per inch (DPI) for the width of screen.
See also QDesktopWidget::screenCount().
Returns the orientation of the screen.
See also QDesktopWidget::screenCount().
int QSystemDisplayInfo::physicalHeight ( int screen )
Returns the physical height of the screen in millimeters.
See also QDesktopWidget::screenCount().
int QSystemDisplayInfo::physicalWidth ( int screen )
Returns the physical width of screen in millimeters.
See also QDesktopWidget::screenCount().