SystemPalette QML Type
The SystemPalette element provides access to the Qt palettes. More...
Import Statement: | import . |
Since: | Qt 4.7 |
Properties
- alternateBase : color
- base : color
- button : color
- buttonText : color
- colorGroup : enumeration
- dark : color
- highlight : color
- highlightedText : color
- light : color
- mid : color
- midlight : color
- shadow : color
- text : color
- window : color
- windowText : color
Detailed Description
The 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:
See also QPalette.
Property Documentation
The alternate base 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:
- SystemPalette.Active (default)
- SystemPalette.Inactive
- SystemPalette.Disabled
See also QPalette::ColorGroup.
The highlighted 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.