QDisplayInfo ClassThe QDisplayInfo class provides various information about the display. More... #include <QDisplayInfo> Inherits: QObject. QDisplayInfo is instantiated by QML element DisplayInfo Public Types
Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QDisplayInfo class provides various information about the display. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QDisplayInfo::BacklightUnknown | 0 | The state of the backlight is unknown. |
QDisplayInfo::BacklightOff | 1 | Backlight is turned off. |
QDisplayInfo::BacklightDimmed | 2 | Backlight has been dimmed. |
QDisplayInfo::BacklightOn | 3 | Backlight is on. |
Constructs a QDisplayInfo object with the given parent.
Destroys the object
Returns the backlight state of the given screen.
This signal is emitted when the backlight state for screen has changed to state.
Returns the display brightness of the given screen, in 0 - 100 scale. In case of error or the information is not available, -1 is returned.
Returns the color depth of the given screen, in bits per pixel. -1 is returned if not available or on error.
Please use QScreen::depth() instead.
Returns the contrast of the given screen, in 0 - 100 scale. -1 is returned if not available or on error.
Returns the horizontal resolution of the given screen in terms of the number of dots per inch. -1 is returned if not available or on error.
Please use QScreen::logicalDotsPerInchX() instead.
Returns the vertical resolution of the given screen in terms of the number of dots per inch. -1 is returned if not available or on error.
Please use QScreen::logicalDotsPerInchY() instead.
Returns the physical height of the screen in millimeters. -1 is returned if not available or on error.
Please use QScreen::physicalSize().height() instead.
Returns the physical width of screen in millimeters. -1 is returned if not available or on error.
Please use QScreen::physicalSize().width() instead.