Qt 5.10 Book Examples
Progress.h
Go to the documentation of this file.
1 // ======================================================================
2 // Progress.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QWidget>
14 
15 class QProgressBar;
16 
17 // ======================================================================
18 class Progress : public QWidget {
19  Q_OBJECT
20 private:
21  QProgressBar* m_pprb;
22  int m_nStep;
23 
24 public:
25  Progress(QWidget* pobj = 0);
26 
27 public slots:
28  void slotStep ();
29  void slotReset();
30 };
void slotStep()
Definition: Progress.cpp:39
void slotReset()
Definition: Progress.cpp:45
Progress(QWidget *pobj=0)
Definition: Progress.cpp:15