Valderman

Counter.h

Apr 1st, 2022 (edited)
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <QObject>
  4.  
  5. class Counter : public QObject
  6. {
  7.     Q_OBJECT
  8.  
  9.     private:
  10.         int m_nValue;
  11.  
  12.     public:
  13.         Counter();
  14.  
  15.     public slots:
  16.         void slotInc();
  17.  
  18.     signals:
  19.         void goodbye();
  20.         void counterChanged(int);
  21. };
  22.  
  23. // #include "Counter.moc"
  24.  
Add Comment
Please, Sign In to add comment