Compatible with static build

This commit is contained in:
朱子楚\zhuzi
2023-09-09 20:09:20 +08:00
parent ef40e3b109
commit 618b21854f
12 changed files with 345 additions and 212 deletions

19
src/FluentUI.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef FLUENTUI_H
#define FLUENTUI_H
#include <QObject>
#include <QQmlEngine>
class FluentUI : public QObject
{
Q_OBJECT
public:
static FluentUI *getInstance();
Q_DECL_EXPORT void registerTypes(QQmlEngine *engine);
void registerTypes(const char *uri);
void initializeEngine(QQmlEngine *engine, const char *uri);
private:
static FluentUI* m_instance;
};
#endif // FLUENTUI_H