Qt 5.10 Book Examples
Counter.h
Go to the documentation of this file.
1 // ======================================================================
2 // Counter.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 <QObject>
14 
15 // ======================================================================
16 class Counter : public QObject {
17  Q_OBJECT
18 private:
19  int m_nValue;
20 
21 public:
22  Counter();
23 
24 public slots:
25  void slotInc();
26 
27 signals:
28  void goodbye ( );
29  void counterChanged(int);
30 };
Counter()
Definition: Counter.cpp:14
void goodbye()
void slotInc()
Definition: Counter.cpp:20
void counterChanged(int)