18#ifndef CUSTOMPROGRESSBAR_H
19#define CUSTOMPROGRESSBAR_H
21#include <QProgressBar>
40 setTextVisible(
false);
42 timer_ =
new QTimer(
this);
43 timer_->setSingleShot(
true);
44 connect(timer_, &QTimer::timeout,
this, &CustomProgressBar::hide);
The CustomProgressBar class provides a customized progress bar with start and stop functionality.
Definition customprogressbar.h:29
CustomProgressBar(QWidget *parent=nullptr)
Constructs a CustomProgressBar object.
Definition customprogressbar.h:37
void progressStarted()
Signal emitted when the progress starts.
void stop()
Stops the progress bar.
Definition customprogressbar.h:69
void start()
Starts the progress bar.
Definition customprogressbar.h:58
~CustomProgressBar()
Destroys the CustomProgressBar object.
Definition customprogressbar.h:50
void progressStopped()
Signal emitted when the progress stops.