The QSystemDisplayInfo class provides access to display information from the system. More...
#include <QSystemDisplayInfo>
Inherits QObject.
QSystemDisplayInfo ( QObject * parent = 0 ) | |
~QSystemDisplayInfo () |
int | colorDepth ( int screenNumber ) |
int | displayBrightness ( int screenNumber ) |
The QSystemDisplayInfo class provides access to display information from the system.
Constructs a QSystemDisplayInfo object with the given parent.
Constructs a QSystemDisplayInfo with the given parent.
Destroys the QSystemDisplayInfo object.
Returns the color depth of the screen with the index screenNumber, in bits per pixel. Will return -1 in the event of an error.
See also QDesktopWidget::screenCount().
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 -1.
See also QDesktopWidget::screenCount().