BusyIndicator QML Type
表示后台操作,例如在加载内容时。更多...
| Import Statement: | import QtQuick.Controls |
| Inherits: |
属性
- running : bool
详细说明
应使用“忙碌指示器”来显示内容加载过程中或用户界面因等待资源可用而被阻塞时的活动状态。
以下代码片段演示了如何使用 BusyIndicator:
BusyIndicator {
running: image.status === Image.Loading
}ProgressBar BusyIndicator 与表示不确定状态的ProgressBar 类似。两者均可用于指示后台活动。主要区别在于视觉表现,此外, 还能显示具体的进度值(当进度可确定时)。由于视觉上的差异,忙碌指示器和不确定状态的进度条在用户界面中适用的位置不同。忙碌指示器的典型位置:
- 位于ToolBar
- 作为覆盖层显示在Page
- 位于ItemDelegate
另请参阅 《自定义 BusyIndicator》、《指示器控件》以及《ProgressBar 》。
属性文档
running : bool
该属性用于控制“忙”指示符当前是否显示活动状态。
注意: 只有当此属性设置为true 时,该 指示灯才可见。
默认值为true 。
© 2026 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.