23 Q_PROPERTY(
bool active READ active WRITE setActive NOTIFY activeChanged)
25 QQmlComponent* sourceComponent READ sourceComponent WRITE setSourceComponent NOTIFY sourceComponentChanged)
26 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
27 Q_PROPERTY(QQuickItem* item READ item NOTIFY itemChanged)
28 Q_PROPERTY(
Status status READ status NOTIFY statusChanged)
42 [[nodiscard]]
bool active() const;
43 void setActive(
bool active);
45 [[nodiscard]] QQmlComponent* sourceComponent() const;
46 void setSourceComponent(QQmlComponent* component);
48 [[nodiscard]] QUrl source() const;
49 void setSource(const QUrl& source);
51 [[nodiscard]] QQuickItem* item() const;
56 void sourceComponentChanged();
63 friend class LazyIncubator;
67 void onIncubatorReady();
69 bool m_active = false;
74 QPointer<QQmlComponent> m_sourceComponent;
75 QQmlComponent* m_ownedComponent =
nullptr;
77 QPointer<QQuickItem> m_item;
78 QQmlIncubator* m_incubator =
nullptr;