IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

SystemPalette QML Type

Provides access to the Qt palettes.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

SystemPalette QML Type▲

  • Import Statement: import QtQuick 2.13

  • Group: SystemPalette is part of qtquick-visual-utility

Detailed Description▲

The https:// type 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 https://.

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:

 
Sélectionnez
import QtQuick 2.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▲

See also QPalette

Property Documentation▲

 

alternateBase : color▲

The alternate base color of the current color group.

See Also▲

See also QPalette::ColorRole

base : color▲

The base color of the current color group.

See Also▲

See also QPalette::ColorRole

button : color▲

The button color of the current color group.

See Also▲

See also QPalette::ColorRole

buttonText : color▲

The button text foreground color of the current color group.

See Also▲

See also QPalette::ColorRole

colorGroup : enumeration▲

The color group of the palette. This can be one of:

  • https://.Active (default)

  • https://.Inactive

  • https://.Disabled

See Also▲

See also QPalette::ColorGroup

dark : color▲

The dark color of the current color group.

See Also▲

See also QPalette::ColorRole

highlight : color▲

The highlight color of the current color group.

See Also▲

See also QPalette::ColorRole

highlightedText : color▲

The highlighted text color of the current color group.

See Also▲

See also QPalette::ColorRole

light : color▲

The light color of the current color group.

See Also▲

See also QPalette::ColorRole

mid : color▲

The mid color of the current color group.

See Also▲

See also QPalette::ColorRole

midlight : color▲

The midlight color of the current color group.

See Also▲

See also QPalette::ColorRole

shadow : color▲

The shadow color of the current color group.

See Also▲

See also QPalette::ColorRole

text : color▲

The text color of the current color group.

See Also▲

See also QPalette::ColorRole

window : color▲

The window (general background) color of the current color group.

See Also▲

See also QPalette::ColorRole

windowText : color▲

The window text (general foreground) color of the current color group.

See Also▲

See also QPalette::ColorRole

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.