QML SystemPalette ElementThe SystemPalette element provides access to the Qt palettes. More... This element was introduced in Qt 4.7. Properties
Detailed DescriptionThe SystemPalette element provides access to the Qt application palettes. This provides information about the standard colors used for application windows, buttons and other features. These colors are grouped into three color groups: Active, Inactive, and Disabled. See the QPalette documentation for details about color groups and the properties provided by SystemPalette. This can be used to color items in a way that provides a more native look and feel. The following example creates a palette from the Active color group and uses this to color the window and text items appropriately: import QtQuick 1.0 Rectangle { SystemPalette { id: myPalette; colorGroup: SystemPalette.Active } width: 640; height: 480 color: myPalette.window Text { anchors.fill: parent text: "Hello!"; color: myPalette.windowText } } See also QPalette. Property DocumentationThe alternate base color of the current color group. See also QPalette::ColorRole. The base color of the current color group. See also QPalette::ColorRole. The button color of the current color group. See also QPalette::ColorRole. The button text foreground color of the current color group. See also QPalette::ColorRole. The color group of the palette. This can be one of:
See also QPalette::ColorGroup. The dark color of the current color group. See also QPalette::ColorRole. The highlight color of the current color group. See also QPalette::ColorRole. The highlighted text color of the current color group. See also QPalette::ColorRole. The light color of the current color group. See also QPalette::ColorRole. The mid color of the current color group. See also QPalette::ColorRole. The midlight color of the current color group. See also QPalette::ColorRole. The shadow color of the current color group. See also QPalette::ColorRole. The text color of the current color group. See also QPalette::ColorRole. The window (general background) color of the current color group. See also QPalette::ColorRole. The window text (general foreground) color of the current color group. See also QPalette::ColorRole. |
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 4.8 | |
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