BusyIndicatorStyle QML Type

Provides custom styling for BusyIndicatorStyle 更多...

import 语句: import QtQuick.Controls.Styles 1.4
Since: Qt 5.2

特性

详细描述

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

范例:

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
            }
        }
    }
}
					

特性文档编制

[read-only] control : BusyIndicator

The BusyIndicator this style is attached to.

indicator : Component

This defines the appearance of the busy indicator.