Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickloader_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKLOADER_P_P_H
5#define QQUICKLOADER_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qquickloader_p.h"
21#include <qqmlincubator.h>
22
23#include <private/qv4staticvalue_p.h>
24#include <private/qv4persistent_p.h>
25
27
28
30class QQmlV4Function;
32{
33public:
35
36protected:
37 void statusChanged(Status) override;
38 void setInitialState(QObject *) override;
39
40private:
41 QQuickLoaderPrivate *loader;
42};
43
44class QQmlContext;
46{
47 Q_DECLARE_PUBLIC(QQuickLoader)
48
49public:
52
53 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override;
54 void itemImplicitWidthChanged(QQuickItem *) override;
56 void clear();
57 void initResize();
58 void load();
59
64 void updateStatus();
65 void createComponent();
66
67 qreal getImplicitWidth() const override;
68 qreal getImplicitHeight() const override;
69
78 bool updatingSize: 1;
79 bool active : 1;
81 bool asynchronous : 1;
82 // We need to use char instead of QQuickLoader::Status
83 // as otherwise the size of the class would increase
84 // on 32-bit systems, as sizeof(Status) == sizeof(int)
85 // and sizeof(int) > remaining padding on 32 bit
86 char status;
87
88 void _q_sourceLoaded();
89 void _q_updateSize(bool loaderGeometryChanged = true);
90};
91
93
94#endif // QQUICKLOADER_P_P_H
\inmodule QtCore
Definition qobject.h:90
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
The QQmlIncubator class allows QML objects to be created asynchronously.
IncubationMode
Specifies the mode the incubator operates in.
Status
Specifies the status of the QQmlIncubator.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
QQuickLoaderIncubator(QQuickLoaderPrivate *l, IncubationMode mode)
void setInitialState(QObject *) override
Called after the object is first created, but before property bindings are evaluated and,...
void statusChanged(Status) override
Called when the status of the incubator changes.
QQmlStrongJSQObjectReference< QQmlComponent > component
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override
void disposeInitialPropertyValues()
void itemImplicitWidthChanged(QQuickItem *) override
QV4::PersistentValue qmlCallingContext
qreal getImplicitWidth() const override
QQuickLoader::Status computeStatus() const
QV4::PersistentValue initialPropertyValues
QQmlContext * itemContext
void setInitialState(QObject *o)
QQuickLoaderIncubator * incubator
void _q_updateSize(bool loaderGeometryChanged=true)
void itemImplicitHeightChanged(QQuickItem *) override
void incubatorStateChanged(QQmlIncubator::Status status)
qreal getImplicitHeight() const override
\inmodule QtCore\reentrant
Definition qrect.h:483
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLenum mode
double qreal
Definition qtypes.h:92