NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
disappearinglabel.h File Reference

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...
 

Detailed Description

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.

Author
Ahmed Aredah
Date
6/7/2023