aboutsummaryrefslogtreecommitdiffstats
path: root/sample-qml/calledbyqml.h
diff options
context:
space:
mode:
Diffstat (limited to 'sample-qml/calledbyqml.h')
-rw-r--r--sample-qml/calledbyqml.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sample-qml/calledbyqml.h b/sample-qml/calledbyqml.h
new file mode 100644
index 0000000..fbb5ef5
--- /dev/null
+++ b/sample-qml/calledbyqml.h
@@ -0,0 +1,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