Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef COUNTER_H
- #define COUNTER_H
- #include <QQuickItem>
- class Counter : public QObject
- {
- Q_OBJECT
- Q_PROPERTY(int count MEMBER m_count RESET reset NOTIFY countChanged)
- private:
- int m_count;
- public:
- Counter(QObject *parent = 0);
- signals:
- void countChanged();
- public slots:
- void plus();
- void reset();
- };
- #endif // COUNTER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement