The DisappearingLabel class is a subclass of QLabel that provides functionality to display text for a specified duration and then clear it. More...
#include <disappearinglabel.h>
Public Member Functions | |
| DisappearingLabel (QWidget *parent=nullptr) | |
| Constructs a DisappearingLabel object. | |
| void | setTextWithTimeout (const QString &text, int timeoutMs) |
| Sets the text with a timeout duration. | |
The DisappearingLabel class is a subclass of QLabel that provides functionality to display text for a specified duration and then clear it.
|
explicit |
Constructs a DisappearingLabel object.
| parent | The parent widget. |
| void DisappearingLabel::setTextWithTimeout | ( | const QString & | text, |
| int | timeoutMs | ||
| ) |
Sets the text with a timeout duration.
The text will be displayed for the specified duration in milliseconds and then cleared.
| text | The text to display. |
| timeoutMs | The timeout duration in milliseconds. |