BusyIndicator QML Type

Indicates background activity, for example, while content is being loaded. 更多...

导入语句: import QtQuick.Controls 2.15
Since: Qt 5.7
继承:

Control

特性

详细描述

The busy indicator should be used to indicate activity while content is being loaded or the UI is blocked waiting for a resource to become available.

The following snippet shows how to use the BusyIndicator:

BusyIndicator {
    running: image.status === Image.Loading
}
					

BusyIndicator is similar to an indeterminate ProgressBar . Both can be used to indicate background activity. The main difference is visual, and that ProgressBar can also present a concrete amount of progress (when it can be determined). Due to the visual difference, busy indicators and indeterminate progress bars fit different places in user interfaces. Typical places for a busy indicator:

另请参阅 Customizing BusyIndicator , 指示器控件 ,和 ProgressBar .

特性文档编制

running : bool

This property holds whether the busy indicator is currently indicating activity.

注意: The indicator is only visible when this property is set to true .

默认值为 true .