main
zhuzihcu 2023-04-11 18:05:07 +08:00
parent b10a0752fb
commit c26fdfaee3
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