This commit is contained in:
zhuzichu
2024-07-04 00:23:00 +08:00
parent 8d1ee6fc36
commit 5794d8d9ce
6 changed files with 29 additions and 27 deletions

View File

@ -2,16 +2,17 @@
#include <QObject>
#include <QQmlApplicationEngine>
#include "stdafx.h"
#include "singleton.h"
#include "stdafx.h"
class AppInfo : public QObject {
Q_OBJECT
Q_PROPERTY_AUTO(QString, version)
private:
explicit AppInfo(QObject *parent = nullptr);
Q_OBJECT
Q_PROPERTY_AUTO(QString, version)
private:
explicit AppInfo(QObject *parent = nullptr);
public:
SINGLETON(AppInfo)
Q_INVOKABLE [[maybe_unused]] void testCrash();
public:
SINGLETON(AppInfo)
[[maybe_unused]] Q_INVOKABLE void testCrash();
};