QScreenInformation Class Reference
|
Constant | Value | Description |
---|---|---|
QScreenInformation::Normal | 0 | The screen is a normal display; e.g. an LCD or CRT. |
QScreenInformation::Television | 1 | The screen outputs a television signal. |
QScreenInformation::Overlay | 2 | The screen is a normal display overlaid over one of the other screens. |
Constructs a screen information object for screenNumber and attaches it to parent. If screenNumber is -1, then the primary screen number will be used. Otherwise, if the screenNumber is invalid, then screenNumber() on the constructed object will be -1.
See also screenNumber().
Constructs a screen information object for the first screen with the specified type and attaches it to parent. If there is no such screen, then screenNumber() on the constructed object will return -1.
See also screenNumber().
Destroys this screen information object. If the clone state was changed with setClonedScreen(), then the system will revert the screen to its previous clone mode.
See also setClonedScreen().
Signal that is emitted when one of isVisible(), type(), clonedScreen(), layer(), supportedLayers(), or transparencyColor() changes.
See also isVisible(), type(), clonedScreen(), layer(), supportedLayers(), and transparencyColor().
Returns the number of the screen that this screen is cloning. The output on the other screen will also be sent to this screen. If the value is -1, then this screen is separated from all the others.
See also setClonedScreen() and changed().
Returns true if the screen is expected to be visible to the user at the present time. In the case of Television screens, this may be false if the video cable is not connected.
See also changed().
Returns the overlay layer that this screen currently occupies. A value of zero indicates the normal GUI layer. A value less than zero indicates that the overlay is currently below the normal GUI layer. A value greater than zero indicates that the overlay is currently above the normal GUI layer. The default value is zero.
See also setLayer(), supportedLayers(), and transparencyColor().
Returns the screen number that this object pertains to. Returns -1 if this object was constructed using an invalid screen number, or it was constructed using a QScreenInformation::Type and there was no screen with that type.
Sets the number of the screen that this screen is cloning to value. The output on screen value will also be sent to this screen. If value is -1, then this screen should be separated from all others.
When this QScreenInformation object is deleted, the requested clone operation will be reverted. This permits the system to revert the clone state to the default when an application crashes.
The value of clonedScreen() will remain at its previous value until the changed() signal is emitted. The system is free to ignore the request if the requested clone operation is not supported.
See also clonedScreen() and changed().
Sets the overlay layer for this screen to value. A value of zero indicates the normal GUI layer. A value less than zero indicates that the overlay is currently below the normal GUI layer. A value greater than zero indicates that the overlay is currently above the normal GUI layer.
The layer can only be set to one of the values in the list returned by supportedLayers(). Requests to change the layer to something else will be ignored.
Setting the layer value for an overlay screen will also make it visible. The layer will be made invisible again once the QScreenInformation object is deleted, or the application exits. The isVisible() function can be used to determine if the layer is currently visible.
See also layer(), supportedLayers(), and isVisible().
Returns the list of overlay layer numbers that are supported for this screen. This can be used by the client application to locate an overlay layer that can be placed above or below the normal GUI layer.
As an example, if the list contains -1, 1, and 2, then the layer can be placed one step below the main GUI layer, or either one or two steps above the main GUI layer.
If the returned list is empty, then the overlay position is fixed at the value returned by layer().
See also layer() and setLayer().
Returns the color to fill an area of this screen with to cause layers below this one to be visible through the transparency gaps.
See also layer().
Returns the type of screen.
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 qtextended4.4 | |
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 ! |
Copyright © 2000-2012 - www.developpez.com