![]() |
Qt 6.x
The Qt SDK
|
#include <qquickloader_p_p.h>
Public Member Functions | |
QQuickLoaderIncubator (QQuickLoaderPrivate *l, IncubationMode mode) | |
![]() | |
QQmlIncubator (IncubationMode=Asynchronous) | |
Create a new incubator with the specified mode. | |
virtual | ~QQmlIncubator () |
void | clear () |
Clears the incubator. | |
void | forceCompletion () |
Force any in-progress incubation to finish synchronously. | |
bool | isNull () const |
Returns true if the incubator's status() is Null. | |
bool | isReady () const |
Returns true if the incubator's status() is Ready. | |
bool | isError () const |
Returns true if the incubator's status() is Error. | |
bool | isLoading () const |
Returns true if the incubator's status() is Loading. | |
QList< QQmlError > | errors () const |
Return the list of errors encountered while incubating the object. | |
IncubationMode | incubationMode () const |
Return the incubation mode passed to the QQmlIncubator constructor. | |
Status | status () const |
Return the current status of the incubator. | |
QObject * | object () const |
Return the incubated object if the status is Ready, otherwise 0. | |
void | setInitialProperties (const QVariantMap &initialProperties) |
Stores a mapping from property names to initial values, contained in initialProperties, with which the incubated component will be initialized. | |
Protected Member Functions | |
void | statusChanged (Status) override |
Called when the status of the incubator changes. | |
void | setInitialState (QObject *) override |
Called after the object is first created, but before property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called. | |
virtual void | statusChanged (Status) |
Called when the status of the incubator changes. | |
virtual void | setInitialState (QObject *) |
Called after the object is first created, but before property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called. | |
Additional Inherited Members | |
![]() | |
enum | IncubationMode { Asynchronous , AsynchronousIfNested , Synchronous } |
Specifies the mode the incubator operates in. More... | |
enum | Status { Null , Ready , Loading , Error } |
Specifies the status of the QQmlIncubator. More... | |
Definition at line 31 of file qquickloader_p_p.h.
|
inline |
Definition at line 34 of file qquickloader_p_p.h.
Called after the object is first created, but before property bindings are evaluated and, if applicable, QQmlParserStatus::componentComplete() is called.
This is equivalent to the point between QQmlComponent::beginCreate() and QQmlComponent::completeCreate(), and can be used to assign initial values to the object's properties.
The default implementation does nothing.
Reimplemented from QQmlIncubator.
Definition at line 620 of file qquickloader.cpp.
References o, and QQuickLoaderPrivate::setInitialState().
Called when the status of the incubator changes.
status is the new status.
The default implementation does nothing.
Reimplemented from QQmlIncubator.
Definition at line 662 of file qquickloader.cpp.
References QQuickLoaderPrivate::incubatorStateChanged(), and QQmlIncubator::status().