C

StatusIndicator QML Type

An indicator that displays active or inactive states. More...

Import Statement: import QtQuick.Enterprise.Controls 1.3
Since: QtQuick.Enterprise.Controls 1.1
Inherits:

FocusScope

Properties

Detailed Description

A StatusIndicator in the active state

A StatusIndicator in the active state.

A StatusIndicator in the inactive state

A StatusIndicator in the inactive state.

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

QMLResult
import QtQuick 2.2
import QtQuick.Enterprise.Controls 1.3

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

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

"Green StatusIndicator"

You can create a custom appearance for a StatusIndicator by assigning a StatusIndicatorStyle.

Property Documentation

active : bool

This property specifies whether the indicator is active or inactive.

The default value is false (inactive).

This QML property was introduced in QtQuick.Enterprise.Controls 1.2.


color : color

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

The default value is "red".


style : Component


Available under certain Qt licenses.
Find out more.