This file contains the declaration of the CustomProgressBar class. More...
#include <QProgressBar>
#include <QTimer>
Go to the source code of this file.
Classes | |
class | CustomProgressBar |
The CustomProgressBar class provides a customized progress bar with start and stop functionality. More... | |
This file contains the declaration of the CustomProgressBar class.
The CustomProgressBar class is a subclass of QProgressBar that provides a customized progress bar with start and stop functionality. It emits signals when the progress starts and stops. The progress bar is initially hidden and starts when the start() method is called. After a specified timeout period, it automatically stops and emits the progressStopped() signal. The timeout period is set to 5000 milliseconds (5 seconds) by default. The progress bar does not display text and uses a minimum value of 0 and a maximum value of 100. The text visibility is disabled. The CustomProgressBar class is intended to be used in a QWidget-based application. The progressStarted() and progressStopped() signals can be connected to slots to perform actions when the progress starts and stops, respectively. The CustomProgressBar class is derived from QProgressBar and utilizes QTimer for timing functionality.