diff options
Diffstat (limited to 'app/qml-example/main.h')
-rw-r--r-- | app/qml-example/main.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/qml-example/main.h b/app/qml-example/main.h new file mode 100644 index 0000000..a090b07 --- /dev/null +++ b/app/qml-example/main.h @@ -0,0 +1,17 @@ +#ifndef MAIN_H +#define MAIN_H + +#include <QString> +#include <QDebug> + +class MyClass : public QObject +{ + Q_OBJECT + +public slots: + void cppSlot(const QString &msg) { + qDebug() << "Called the C++ slot with message:" << msg; + } +}; + +#endif // MAIN_H
\ No newline at end of file |