Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QDisplayInfo Class

The QDisplayInfo class provides various information about the display. More...

 #include <QDisplayInfo>

Inherits: QObject.

QDisplayInfo is instantiated by QML element DisplayInfo

Public Types

enum BacklightState { BacklightUnknown, BacklightOff, BacklightDimmed, BacklightOn }

Public Functions

QDisplayInfo(QObject * parent = 0)
virtual ~QDisplayInfo()
BacklightState backlightState(int screen) const
int brightness(int screen) const
int colorDepth(int screen) const
int contrast(int screen) const
int dpiX(int screen) const
int dpiY(int screen) const
int physicalHeight(int screen) const
int physicalWidth(int screen) const
  • 31 public functions inherited from QObject

Signals

void backlightStateChanged(int screen, QDisplayInfo::BacklightState state)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QDisplayInfo class provides various information about the display.

Member Type Documentation

enum QDisplayInfo::BacklightState

This enum describes the state of the backlight.

ConstantValueDescription
QDisplayInfo::BacklightUnknown0The state of the backlight is unknown.
QDisplayInfo::BacklightOff1Backlight is turned off.
QDisplayInfo::BacklightDimmed2Backlight has been dimmed.
QDisplayInfo::BacklightOn3Backlight is on.

Member Function Documentation

QDisplayInfo::QDisplayInfo(QObject * parent = 0)

Constructs a QDisplayInfo object with the given parent.

QDisplayInfo::~QDisplayInfo() [virtual]

Destroys the object

BacklightState QDisplayInfo::backlightState(int screen) const

Returns the backlight state of the given screen.

void QDisplayInfo::backlightStateChanged(int screen, QDisplayInfo::BacklightState state) [signal]

This signal is emitted when the backlight state for screen has changed to state.

int QDisplayInfo::brightness(int screen) const

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 QDisplayInfo::colorDepth(int screen) const

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.

int QDisplayInfo::contrast(int screen) const

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

int QDisplayInfo::dpiX(int screen) const

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.

int QDisplayInfo::dpiY(int screen) const

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.

int QDisplayInfo::physicalHeight(int screen) const

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

Please use QScreen::physicalSize().height() instead.

int QDisplayInfo::physicalWidth(int screen) const

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

Please use QScreen::physicalSize().width() instead.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web