DtkDeclarative  5.6.10
DTK Declarative module
WaterProgressBar类 参考

提供一种水波纹类型的进度条控件. 更多...

类 WaterProgressBar 继承关系图:
Control

属性

int value
 value 属性表示 WaterProgressBar 进度值,其取值范围为[0, 100] 更多...
 
DPalette backgroundColor1
 backgroundColor1 属性表示 WaterProgressBar 的第一背景颜色值。 更多...
 
DPalette backgroundColor2
 backgroundColor2 属性表示 WaterProgressBar 的第二背景颜色值。
 
DPalette dropShadowColor
 dropShadowColor 属性表示 WaterProgressBar 的阴影颜色值。
 
DPalette popBackgroundColor
 popBackgroundColor 属性表示 WaterProgressBar 的弹出气泡的背景颜色。
 
DPalette textColor
 textColor 属性表示 WaterProgressBar 的前景颜色,即文字的颜色。
 

详细描述

提供一种水波纹类型的进度条控件.

WaterProgressBar 提供一种趣味的水波纹进度条控件。WaterProgressBar有特殊的水波纹动画,能够将进度条的形式修改为水涨的效果。
例如下述代码:

WaterProgressBar 的使用方式如下所示:
NumberAnimation on value {
loops: Animation.Infinite
from: 0
to: 100
duration: 10000
}
}
提供一种水波纹类型的进度条控件.
Definition: WaterProgressBar.qml:7
int value
value 属性表示 WaterProgressBar 进度值,其取值范围为[0, 100]
Definition: WaterProgressBar.qml:10

属性说明

◆ backgroundColor1

Palette WaterProgressBar::backgroundColor1
read

backgroundColor1 属性表示 WaterProgressBar 的第一背景颜色值。

WaterProgressBar 的默认背景为渐变背景。

◆ value

int WaterProgressBar::value
read

value 属性表示 WaterProgressBar 进度值,其取值范围为[0, 100]

注解
请注意不要超过该范围。当 value > 0 时 WaterProgressBar 开始水波动画。当 value > 30 时 WaterProgressBar 开始气泡动画

该类的文档由以下文件生成: