From c26fdfaee39f33f0ac693aa5cef3859999c92261 Mon Sep 17 00:00:00 2001 From: zhuzihcu Date: Tue, 11 Apr 2023 18:05:07 +0800 Subject: [PATCH] update --- example/AppInfo.cpp | 7 +++++++ example/AppInfo.h | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 example/AppInfo.cpp create mode 100644 example/AppInfo.h 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