BusyIndicator QML Type

表示后台活动,例如正在加载内容时。更多

Import Statement: import QtQuick.Controls
Inherits:

Control

属性

详细说明

当内容正在加载或用户界面被阻塞以等待资源可用时,忙指示器可用于指示活动。

以下代码段展示了如何使用 BusyIndicator:

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

BusyIndicator 类似于不确定ProgressBar 。两者都可用于指示后台活动。两者的主要区别在于视觉上的不同,而且ProgressBar 还可以显示具体的进度(在可以确定的情况下)。由于视觉上的不同,繁忙指示符和不确定进度条在用户界面中的位置也不同。繁忙指示符的典型位置

另请参阅 自定义繁忙指示器指示器控件ProgressBar

属性文档

running : bool

该属性表示繁忙指示符当前是否显示活动。

注意: 只有当此属性设置为true 时,指示器才可见。

默认值为true


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.