Merge pull request #38 from zhuzichu520/dev1.2.4

update
This commit is contained in:
zhuzichu 2023-04-11 18:06:06 +08:00 committed by GitHub
commit 59527fc954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

7
example/AppInfo.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "AppInfo.h"
AppInfo::AppInfo(QObject *parent)
: QObject{parent}
{
version("1.2.4");
}

15
example/AppInfo.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef APPINFO_H
#define APPINFO_H
#include <QObject>
#include "stdafx.h"
class AppInfo : public QObject
{
Q_OBJECT
Q_PROPERTY_AUTO(QString,version)
public:
explicit AppInfo(QObject *parent = nullptr);
};
#endif // APPINFO_H