Advertisement
Guest User

Untitled

a guest
Jun 13th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. # include <QObject>
  2. class ABC : public QObject
  3. {
  4.    Q_OBJECT
  5. public:
  6.    ABC()
  7.    {
  8.        connect(this, &ABC::notifyMe, this , ABC::OnNotifyMe);
  9.    }
  10. signals:
  11.   void notifyMe();
  12.  
  13. public slots:
  14.   void OnNotifyMe()
  15.   {
  16.       emit notifyMe();
  17.   }
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement