QStatusBar subclass with timed messages, color styling, and animated progress text.
More...
#include <statusbar.h>
|
| | StatusBar (QWidget *parent=nullptr) |
| | Construct with an optional parent.
|
| |
| void | showStatusMessage (const QString &text, const TimeSpan &timeout) |
| | Show a message that disappears after a timeout.
|
| |
| void | showStatusMessage (const QString &text, const QColor &textColor) |
| | Show a colored message with no automatic timeout.
|
| |
| void | showStatusMessage (const QString &text, const QColor &textColor, const TimeSpan &timeout) |
| | Show a colored message that disappears after a timeout.
|
| |
| void | showAnimatedProgressMessage (const QString &text, const QColor &textColor=QColor()) |
| | Show a message with animated trailing dots to indicate progress.
|
| |
|
void | stopAnimation () |
| | Stop the animated progress message and clear the status bar.
|
| |
| void | setForegroundColor (const QColor &color) |
| | Set a permanent foreground color for status bar text.
|
| |
QStatusBar subclass with timed messages, color styling, and animated progress text.
StatusBar extends QStatusBar with:
Definition at line 17 of file statusbar.h.
◆ StatusBar()
| StatusBar::StatusBar |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct with an optional parent.
- Parameters
-
| parent | Optional QWidget parent |
◆ setForegroundColor()
| void StatusBar::setForegroundColor |
( |
const QColor & |
color | ) |
|
Set a permanent foreground color for status bar text.
- Parameters
-
◆ showAnimatedProgressMessage()
| void StatusBar::showAnimatedProgressMessage |
( |
const QString & |
text, |
|
|
const QColor & |
textColor = QColor() |
|
) |
| |
Show a message with animated trailing dots to indicate progress.
- Parameters
-
| text | Base message text (dots are appended automatically) |
| textColor | Optional text color (invalid QColor = default) |
◆ showStatusMessage() [1/3]
| void StatusBar::showStatusMessage |
( |
const QString & |
text, |
|
|
const QColor & |
textColor |
|
) |
| |
Show a colored message with no automatic timeout.
- Parameters
-
| text | Message text |
| textColor | Text color |
◆ showStatusMessage() [2/3]
| void StatusBar::showStatusMessage |
( |
const QString & |
text, |
|
|
const QColor & |
textColor, |
|
|
const TimeSpan & |
timeout |
|
) |
| |
Show a colored message that disappears after a timeout.
- Parameters
-
| text | Message text |
| textColor | Text color |
| timeout | Duration before the message is cleared |
◆ showStatusMessage() [3/3]
| void StatusBar::showStatusMessage |
( |
const QString & |
text, |
|
|
const TimeSpan & |
timeout |
|
) |
| |
Show a message that disappears after a timeout.
- Parameters
-
| text | Message text |
| timeout | Duration before the message is cleared |
The documentation for this class was generated from the following file: