#pragma once #include #include #include #include #include #include class QtShell: public QObject { Q_OBJECT; Q_PROPERTY(QQmlListProperty components READ components FINAL); Q_CLASSINFO("DefaultProperty", "components"); QML_ELEMENT; public: explicit QtShell(QObject* parent = nullptr): QObject(parent) {} QQmlListProperty components(); public slots: void reload(); private: static void appendComponent(QQmlListProperty* list, QObject* component); };