KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
StatusBar Class Reference

QStatusBar subclass with timed messages, color styling, and animated progress text. More...

#include <statusbar.h>

+ Inheritance diagram for StatusBar:
+ Collaboration diagram for StatusBar:

Public Member Functions

 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.
 

Detailed Description

QStatusBar subclass with timed messages, color styling, and animated progress text.

StatusBar extends QStatusBar with:

Definition at line 17 of file statusbar.h.

Constructor & Destructor Documentation

◆ StatusBar()

StatusBar::StatusBar ( QWidget *  parent = nullptr)
explicit

Construct with an optional parent.

Parameters
parentOptional QWidget parent

Member Function Documentation

◆ setForegroundColor()

void StatusBar::setForegroundColor ( const QColor &  color)

Set a permanent foreground color for status bar text.

Parameters
colorForeground color

◆ showAnimatedProgressMessage()

void StatusBar::showAnimatedProgressMessage ( const QString &  text,
const QColor &  textColor = QColor() 
)

Show a message with animated trailing dots to indicate progress.

Parameters
textBase message text (dots are appended automatically)
textColorOptional 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
textMessage text
textColorText 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
textMessage text
textColorText color
timeoutDuration 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
textMessage text
timeoutDuration before the message is cleared

The documentation for this class was generated from the following file: