#ifndef WAITDIALOG_H #define WAITDIALOG_H #include namespace Ui { class WaitDialog; } class WaitDialog : public QDialog { Q_OBJECT public: explicit WaitDialog(QWidget *parent = nullptr); ~WaitDialog(); private slots: void timeout(); private: Ui::WaitDialog *ui; QTimer* _timer; int _state; void setText(); }; #endif // WAITDIALOG_H