30 Q_PROPERTY(
bool active READ active WRITE setActive NOTIFY activeChanged)
31 Q_PROPERTY(QUrl source READ source WRITE setSourceWithoutResolve NOTIFY sourceChanged)
32 Q_PROPERTY(QQmlComponent *sourceComponent READ sourceComponent WRITE setSourceComponent RESET resetSourceComponent NOTIFY sourceComponentChanged)
33 Q_PROPERTY(QObject *item READ item NOTIFY itemChanged)
34 Q_PROPERTY(Status status READ status NOTIFY statusChanged)
35 Q_PROPERTY(qreal progress READ progress NOTIFY progressChanged)
36 Q_PROPERTY(
bool asynchronous READ asynchronous WRITE setAsynchronous NOTIFY asynchronousChanged)
37 QML_NAMED_ELEMENT(Loader)
38 QML_ADDED_IN_VERSION(2, 0)
41 QQuickLoader(QQuickItem *parent =
nullptr);
42 virtual ~QQuickLoader();
45 void setActive(
bool newVal);
47 Q_INVOKABLE
void setSource(
const QUrl &source, QJSValue initialProperties);
48 Q_INVOKABLE
void setSource(
const QUrl &source);
51 void setSourceWithoutResolve(
const QUrl &source);
53 QQmlComponent *sourceComponent()
const;
54 void setSourceComponent(QQmlComponent *);
55 void resetSourceComponent();
57 enum Status { Null, Ready, Loading, Error };
59 Status status()
const;
60 qreal progress()
const;
62 bool asynchronous()
const;
63 void setAsynchronous(
bool a);
65 QObject *item()
const;
71 void sourceComponentChanged();
73 void progressChanged();
75 void asynchronousChanged();
78 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
79 void componentComplete() override;
80 void itemChange(ItemChange change,
const ItemChangeData &value) override;
83 QUrl setSourceUrlHelper(
const QUrl &unresolvedUrl);
84 void setSource(
const QUrl &sourceUrl,
bool needsClear);
85 void loadFromSource();
86 void loadFromSourceComponent();
87 Q_DISABLE_COPY(QQuickLoader)
88 Q_DECLARE_PRIVATE(QQuickLoader)
89 Q_PRIVATE_SLOT(d_func(),
void _q_sourceLoaded())
90 Q_PRIVATE_SLOT(d_func(),
void _q_updateSize())
\qmltype TextDocument \nativetype QQuickTextDocument \inqmlmodule QtQuick
#define QQuickTextInterface_iid