本页内容

Utils::ProgressIndicator Class

class Utils::ProgressIndicator

ProgressIndicator 类显示一个循环播放、永不停歇的进度指示器。更多...

Header: #include <ProgressIndicator>
Inherits: Utils::OverlayWidget

公共函数

ProgressIndicator(Utils::ProgressIndicatorSize size, QWidget *parent = nullptr)
void setIndicatorSize(Utils::ProgressIndicatorSize size)
QSize sizeHint() const

详细说明

若您需要指示某项操作正在进行,但又没有构建进度条所需的详细进度信息,可使用此类。您可以按需创建该控件,也可以一次性创建控件,仅在需要时显示。动画仅在控件可见时运行。

成员函数文档

[explicit] ProgressIndicator::ProgressIndicator(Utils::ProgressIndicatorSize size, QWidget *parent = nullptr)

创建一个大小为size 、父对象为parent 的ProgressIndicator。

另请参阅 setIndicatorSize()。

void ProgressIndicator::setIndicatorSize(Utils::ProgressIndicatorSize size)

将进度指示器的尺寸更改为size 。

另请参阅 ProgressIndicatorPainter::indicatorSize()。

QSize ProgressIndicator::sizeHint() const

返回指标的大小(以设备无关像素为单位)。

另请参阅 ProgressIndicatorPainter::indicatorSize()。

Copyright © The Qt Company Ltd. and other contributors. 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.