#ifndef WINDOWHELPER_H #define WINDOWHELPER_H #include #include #include #include #include class WindowHelper : public QObject { Q_OBJECT public: explicit WindowHelper(QObject *parent = nullptr); Q_INVOKABLE void initWindow(QQuickWindow* window); Q_INVOKABLE void destoryWindow(); Q_INVOKABLE QVariant createRegister(const QString& path); private: QQuickWindow* window; }; #endif // WINDOWHELPER_H