aboutsummaryrefslogtreecommitdiffstats
path: root/sample-qml/calledbyqml.h
blob: fbb5ef568c1cdb4edd362d1e0e713eb59b7cf05b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef CALLEDBYQML_H
#define CALLEDBYQML_H
#include <QObject>

class CalledByQml : public QObject
{
    Q_OBJECT

public:
    explicit CalledByQml(QObject *parent = 0);
    Q_INVOKABLE int consoleout();
    Q_INVOKABLE int showup();

signals:

public slots:
    void refresh() {
        qDebug("Called the C++ slot");
    }
};

#endif // CALLEDBYQML_H