DisplayInfo QML Type

The DisplayInfo element provides information about the display of the device. More...

Signals

Methods

Detailed Description

Signal Documentation

onBacklightStateChanged(int screen, BacklightState state)

This handler is called whenever the state of screen has been changed to state.

Note: The corresponding handler is onOnBacklightStateChanged.


Method Documentation

BacklightState backlightState(int screen)

Returns the backlight state of the given screen. Possible values are:

  • DisplayInfo.BacklightUnknown - The state of the backlight is unknown.
  • DisplayInfo.BacklightOff - Backlight is turned off.
  • DisplayInfo.BacklightDimmed - Backlight has been dimmed.
  • DisplayInfo.BacklightOn - Backlight is on.

int brightness(int screen)

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.


int colorDepth(int screen)

Returns the color depth of the given screen, in bits per pixel. -1 is returned if not available or on error.


int contrast(int screen)

Returns the contrast of the given screen, in 0 - 100 scale. -1 is returned if not available or on error.


int dpiX(int screen)

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.


int dpiY(int screen)

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.


int physicalHeight(int screen)

Returns the physical height of the screen in millimeters. -1 is returned if not available or on error.


int physicalWidth(int screen)

Returns the physical width of screen in millimeters. -1 is returned if not available or on error.