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

StatusIndicator QML Type

An indicator that displays active or inactive states.

This type was introduced in Qt 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

StatusIndicator QML Type▲

  • Import Statement: import QtQuick.Extras 1.4

  • Since: Qt 5.5

  • Inherits: FocusScope

  • Group: StatusIndicator is part of extras, extras-non-interactive

Detailed Description▲

A StatusIndicator in the active state

A https:// in the active state.

A StatusIndicator in the inactive state

A https:// in the inactive state.

The https:// displays active or inactive states. By using different colors via the https:// property, https:// can provide extra context to these states. For example:

QML

Result

 
Sélectionnez
import QtQuick 2.2
import QtQuick.Extras 1.4

Rectangle {
    width: 100
    height: 100
    color: "#cccccc"

    StatusIndicator {
        anchors.centerIn: parent
        color: "green"
    }
}
"Green StatusIndicator"

You can create a custom appearance for a https:// by assigning a https://.

Property Documentation▲

 

active : bool▲

This property specifies whether the indicator is active or inactive.

The default value is false (inactive).

color : color▲

This property specifies the color of the indicator when it is active.

The default value is "red".

style : Component▲

The style Component for this control.

See Also▲

See also https://

Obsolete Members for StatusIndicator▲

The following members of QML type StatusIndicator are deprecated. We strongly advise against using them in new code.

Obsolete Property Documentation▲

 
on : alias▲

This property is deprecated. We strongly advise against using it in new code.

This property specifies whether the indicator is active or inactive.

The default value is false (off).

Use active instead.

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.