This file contains the declaration of the DisappearingLabel class. More...
#include <QLabel>
#include <QTimer>
Go to the source code of this file.
Classes | |
class | DisappearingLabel |
The DisappearingLabel class is a subclass of QLabel that provides functionality to display text for a specified duration and then clear it. More... | |
This file contains the declaration of the DisappearingLabel class.
The DisappearingLabel class is a subclass of QLabel that provides functionality to display text for a specified duration and then clear it. It uses a QTimer to automatically clear the text after the specified timeout. The DisappearingLabel class is intended to be used in a QWidget-based application. The setTextWithTimeout() method can be used to set the text and timeout duration. The clearText() slot is called when the timeout occurs to clear the text.