Qt Mobility Reference Documentation

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 ()
  • 29 public functions inherited from QObject

Static Public Members

int colorDepth ( int screenNumber )
int displayBrightness ( int screenNumber )
  • 4 static public members inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

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

Constructs a QSystemDisplayInfo object with the given parent.

Member Function Documentation

QSystemDisplayInfo::QSystemDisplayInfo ( QObject * parent = 0 )

Constructs a QSystemDisplayInfo 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. Will return -1 in the event of an error.

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 -1.

See also QDesktopWidget::screenCount().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.