#ifndef WAITINGDIALOG_H #define WAITINGDIALOG_H #include #include "QTimer" #include class WaitingDialog : public QDialog { Q_OBJECT public: WaitingDialog(QWidget *parent =0); ~WaitingDialog(); void Start(int interval = 100, int maxValue = 100); void Stop(); private slots: void UpdateSlot(); private: int m_CurrentValue; int m_UpdateInterval; int m_MaxValue; QTimer m_Timer; QProgressBar *m_ProgressBar; }; #endif // WAITINGDIALOG_H