Skip to content

ProgressIndicator

import { ProgressIndicator } from "std-widgets.slint";
export component Example inherits Window {
width: 200px;
height: 25px;
background: transparent;
ProgressIndicator {
width: 90%;
height: parent.height;
progress: 80%;
}
}
slint

ProgressIndicator 向用户告知正在进行操作的进度状态,例如从网络加载数据。

booldefault: false

如果无法通过值确定操作的进度,则设置为 true。

floatdefault: 0

完成百分比,为 0 到 1 之间的值。小于 0 或大于 1 的值将被限制。

ProgressIndicator {
progress: 0.5;
}
slint

© 2026 SixtyFPS GmbH