W3cubDocs

/Qt 5.15

BusyIndicatorStyle QML Type

Provides custom styling for BusyIndicatorStyle. More...

Import Statement: import QtQuick.Controls.Styles 1.4
Since: Qt 5.2

Properties

Detailed Description

You can create a busy indicator by replacing the "indicator" delegate of the BusyIndicatorStyle with a custom design.

Example:

BusyIndicator {
    style: BusyIndicatorStyle {
        indicator: Image {
            visible: control.running
            source: "spinner.png"
            RotationAnimator on rotation {
                running: control.running
                loops: Animation.Infinite
                duration: 2000
                from: 0 ; to: 360
            }
        }
    }
}

Property Documentation

[read-only] control : BusyIndicator

The BusyIndicator this style is attached to.

indicator : Component

This defines the appearance of the busy indicator.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qml-qtquick-controls-styles-busyindicatorstyle.html