Skip to content
KerwinKoo edited this page Dec 26, 2015 · 1 revision

Qt5.4 QML BusyIndicator简介

BusyIndicator

用来显示一个等待图元,在进行一些耗时操作时你可以使用它来缓解用户的焦躁情绪。

running 属性

BusyIndicator 的 running 属性是个布尔值, 为 true 时显示。

style 属性

该允许你定制 BusyIndicator 。一个转圈圈的动画。

例:

    BusyIndicator {
        id: busy;
        running: true;
        anchors.centerIn: parent;
        z: 2;
    }

说明

虽然 BusyIndicator 只有 runningstyle 两个属性,但它的祖先们有很多属性,上面用到的 anchorsz ,都是从 Item 继承来的属性,可以直接使用。

[[TOC]]

Clone this wiki locally