API 浏览器
循环进度

QCircularProgress 组件显示一个彩色的圆形进度条。进度条可以采用确定进度或不确定动画。它应该用于通知用户后台正在执行某个操作。

¥The QCircularProgress component displays a colored circular progress. The bar can either have a determinate progress, or an indeterminate animation. It should be used to inform the user that an action is occurring in the background.

Loading QCircularProgress API...

用法(Usage)

¥Usage

默认情况下,QCircularProgress 继承当前文本颜色(作为弧形进度颜色和内部标签颜色)和当前字体大小(作为组件大小)。为了进行自定义,你可以使用与尺寸和颜色相关的属性。

¥By default, QCircularProgress inherits current text color (as arc progress color and inner label color) and current font size (as component size). For customization, you can use the size and color related props.

Determined state



Determinate and reverse



Offset angle



Custom min/max (same model)



在下面的示例中,show-value 属性还启用了默认插槽,因此你可以用自定义内容(例如 QAvatar 或 QTooltip)填充它。font-size 属性引用内部标签的字体大小。

¥In the example below, show-value property also enables the default slot, so you can fill it with custom content, like even a QAvatar or a QTooltip. The font-size prop refers to the inner label font size.

Show value



Indeterminate state



Rounded arc of progress (v2.8.4+)



Standard sizes