The QProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way.
Progress indicators are indeterminate and do nothing more than spin to show that the application is busy.
Public Slots | |
| void | startAnimation () |
| Starts the spin animation. More... | |
| void | stopAnimation () |
| Stops the spin animation. More... | |
| void | setAnimationDelay (int delay) |
| Sets the delay between animation steps. More... | |
| void | setDisplayedWhenStopped (bool state, const QString &staticDisplay="") |
| Sets whether the component hides itself when it is not animating. More... | |
| void | setToolTips (const QString &staticToolTip, const QString &animatedToolTip) |
| void | setColor (const QColor &color) |
| Sets the color of the components to the given color. More... | |
Signals | |
| void | clicked () |
| void | rightClicked () |
Public Member Functions | |
| QProgressIndicator (QWidget *parent=0) | |
| int | animationDelay () const |
| Returns the delay between animation steps. More... | |
| bool | isAnimated () const |
| Returns a Boolean value indicating whether the component is currently animated. More... | |
| bool | isDisplayedWhenStopped () const |
| Returns a Boolean value indicating whether the receiver shows itself even when it is not animating. More... | |
| const QColor & | color () const |
| Returns the color of the component. More... | |
| QSize | sizeHint () const override |
| void | setWidth (int width) |
| int | heightForWidth (int w) const override |
Protected Member Functions | |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | timerEvent (QTimerEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
Properties | |
| int | delay |
| bool | displayedWhenStopped |
| QColor | color |
| QProgressIndicator::QProgressIndicator | ( | QWidget * | parent = 0 | ) |
|
inline |
Returns the delay between animation steps.
|
signal |
|
inline |
Returns the color of the component.
|
overrideprotected |
|
override |
| bool QProgressIndicator::isAnimated | ( | ) | const |
Returns a Boolean value indicating whether the component is currently animated.
| bool QProgressIndicator::isDisplayedWhenStopped | ( | ) | const |
Returns a Boolean value indicating whether the receiver shows itself even when it is not animating.
|
overrideprotected |
|
inlineoverrideprotected |
|
overrideprotected |
|
signal |
|
slot |
Sets the delay between animation steps.
Setting the delay to a value larger than 40 slows the animation, while setting the delay to a smaller value speeds it up.
| delay | The delay, in milliseconds. |
|
slot |
Sets the color of the components to the given color.
|
slot |
Sets whether the component hides itself when it is not animating.
| state | The animation state. Set false to hide the progress indicator when it is not animating; otherwise true. |
|
slot |
|
inline |
|
inlineoverride |
|
slot |
Starts the spin animation.
|
slot |
Stops the spin animation.
|
overrideprotected |
|
readwrite |
|
readwrite |
|
readwrite |