SpinnerSolution::Spinner Class
class SpinnerSolution::SpinnerSpinner 类渲染一个圆形、持续动画的进度指示器,可作为叠加层附加到任何控件上。更多...
| Header: | #include <solutions/spinner/spinner.h> |
| Inherits: | QObject |
公共函数
| Spinner(SpinnerSolution::SpinnerSize size, QWidget *parent = nullptr) | |
| void | hide() |
| bool | isVisible() const |
| void | setColor(const QColor &color) |
| void | setSize(SpinnerSolution::SpinnerSize size) |
| void | setVisible(bool visible) |
| void | show() |
成员函数文档
[explicit] Spinner::Spinner(SpinnerSolution::SpinnerSize size, QWidget *parent = nullptr)
为传入的parent 控件创建一个带有指定size 的加载圈叠加层。
parent 控件将拥有所创建的加载圈。
void Spinner::hide()
隐藏加载指示器。
bool Spinner::isVisible() const
如果加载器可见,则返回true ;否则,返回false 。
void Spinner::setColor(const QColor &color)
将旋转按钮的颜色设置为color 。
void Spinner::setSize(SpinnerSolution::SpinnerSize size)
将旋转按钮的大小设置为给定的size 。
void Spinner::setVisible(bool visible)
根据visible 的值显示或隐藏旋转加载图标。默认情况下,旋转加载图标是可见的。
另请参阅 isVisible()。
void Spinner::show()
将动画转圈图标作为叠加层显示在构造函数中先前设置的父控件上。
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.