diff --git a/example/AppInfo.cpp b/example/AppInfo.cpp new file mode 100644 index 0000000..905470b --- /dev/null +++ b/example/AppInfo.cpp @@ -0,0 +1,7 @@ +#include "AppInfo.h" + +AppInfo::AppInfo(QObject *parent) + : QObject{parent} +{ + version("1.2.4"); +} diff --git a/example/AppInfo.h b/example/AppInfo.h new file mode 100644 index 0000000..fb518ee --- /dev/null +++ b/example/AppInfo.h @@ -0,0 +1,15 @@ +#ifndef APPINFO_H +#define APPINFO_H + +#include +#include "stdafx.h" + +class AppInfo : public QObject +{ + Q_OBJECT + Q_PROPERTY_AUTO(QString,version) +public: + explicit AppInfo(QObject *parent = nullptr); +}; + +#endif // APPINFO_H