Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqml.cpp File Reference

(8bf5aae19b77b618f3f7a55a59e87c8a319475a8)

#include "qqml.h"
#include <QtQml/qqmlprivate.h>
#include <private/qjsvalue_p.h>
#include <private/qqmlbuiltinfunctions_p.h>
#include <private/qqmlcomponent_p.h>
#include <private/qqmlengine_p.h>
#include <private/qqmlfinalizer_p.h>
#include <private/qqmlloggingcategory_p.h>
#include <private/qqmlmetatype_p.h>
#include <private/qqmlmetatypedata_p.h>
#include <private/qqmltype_p_p.h>
#include <private/qqmltypemodule_p.h>
#include <private/qqmltypewrapper_p.h>
#include <private/qqmlvaluetypewrapper_p.h>
#include <private/qv4dateobject_p.h>
#include <private/qv4errorobject_p.h>
#include <private/qv4identifiertable_p.h>
#include <private/qv4lookup_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <QtCore/qmutex.h>
+ Include dependency graph for qqml.cpp:

Go to the source code of this file.

Classes

struct  AliasRegistrar
 
struct  QQmlPrivate::ObjectPropertyQmlData
 
struct  QQmlPrivate::FallbackPropertyQmlData
 

Namespaces

namespace  QQmlPrivate
 

Typedefs

using ElementNames = QVarLengthArray<const char *, 8>
 
using QQmlPrivate::QmlContextPropertyGetter = QV4::ReturnedValue (*)(QV4::Lookup *l, QV4::ExecutionEngine *engine, QV4::Value *thisObject)
 

Enumerations

enum class  QQmlPrivate::ObjectPropertyResult { QQmlPrivate::OK , QQmlPrivate::NeedsInit , QQmlPrivate::Deleted }
 
enum class  QQmlPrivate::ObjectLookupResult {
  QQmlPrivate::Failure , QQmlPrivate::Object , QQmlPrivate::Fallback , QQmlPrivate::ObjectAsVariant ,
  QQmlPrivate::FallbackAsVariant
}
 

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY (lcQml)
 
 Q_DECLARE_LOGGING_CATEGORY (lcJs)
 
void qmlExecuteDeferred (QObject *object)
 
QQmlContextqmlContext (const QObject *obj)
 
QQmlEngineqmlEngine (const QObject *obj)
 
static QObjectresolveAttachedProperties (QQmlAttachedPropertiesFunc pf, QQmlData *data, QObject *object, bool create)
 
QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction (QObject *object, const QMetaObject *attachedMetaObject)
 
QObjectqmlAttachedPropertiesObject (QObject *object, QQmlAttachedPropertiesFunc func, bool create)
 
QObjectqmlExtendedObject (QObject *object)
 
int qmlRegisterUncreatableMetaObject (const QMetaObject &staticMetaObject, const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
void qmlClearTypeRegistrations ()
 
bool qmlProtectModule (const char *uri, int majVersion)
 
void qmlRegisterModule (const char *uri, int versionMajor, int versionMinor)
 
static QQmlDirParser::Import resolveImport (const QString &uri, int importMajor, int importMinor)
 
static QTypeRevision resolveModuleVersion (int moduleMajor)
 
int qmlTypeId (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
static bool checkSingletonInstance (QQmlEngine *engine, QObject *instance)
 
static QVector< QTypeRevisionavailableRevisions (const QMetaObject *metaObject)
 
template<typename Registration >
void assignVersions (Registration *registration, QTypeRevision revision, QTypeRevision defaultVersion)
 
static QVector< QTypeRevisionprepareRevisions (const QMetaObject *metaObject, QTypeRevision added)
 
static void uniqueRevisions (QVector< QTypeRevision > *revisions, QTypeRevision defaultVersion, QTypeRevision added)
 
static QQmlType::SingletonInstanceInfo::ConstPtr singletonInstanceInfo (const QQmlPrivate::RegisterSingletonType &type)
 
static QQmlType::SingletonInstanceInfo::ConstPtr singletonInstanceInfo (const QQmlPrivate::RegisterCompositeSingletonType &type)
 
static int finalizeType (const QQmlType &dtype)
 
static ElementNames classElementNames (const QMetaObject *metaObject)
 
static void doRegisterTypeAndRevisions (const QQmlPrivate::RegisterTypeAndRevisions &type, const ElementNames &elementNames)
 
static void doRegisterSingletonAndRevisions (const QQmlPrivate::RegisterSingletonTypeAndRevisions &type, const ElementNames &elementNames)
 
int qmlRegisterTypeNotAvailable (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &message)
 
template<>
void QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds, const QMetaObject *extension, bool)
 
static QQmlPropertyCaptureQQmlPrivate::propertyCapture (const AOTCompiledContext *aotContext)
 
static void QQmlPrivate::captureFallbackProperty (QObject *object, int coreIndex, int notifyIndex, bool isConstant, const AOTCompiledContext *aotContext)
 
static void QQmlPrivate::captureObjectProperty (QObject *object, const QQmlPropertyCache *propertyCache, const QQmlPropertyData *property, const AOTCompiledContext *aotContext)
 
static bool QQmlPrivate::inherits (const QQmlPropertyCache *descendent, const QQmlPropertyCache *ancestor)
 
template<bool StrictType>
ObjectPropertyQmlData QQmlPrivate::findObjectPropertyQmlData (QV4::Lookup *l, QObject *object)
 
template<bool StrictType = false>
ObjectPropertyResult QQmlPrivate::loadObjectProperty (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
template<bool StrictType = false>
ObjectPropertyResult QQmlPrivate::writeBackObjectProperty (QV4::Lookup *l, QObject *object, void *source)
 
static FallbackPropertyQmlData QQmlPrivate::findFallbackPropertyQmlData (QV4::Lookup *l, QObject *object)
 
static ObjectPropertyResult QQmlPrivate::loadFallbackProperty (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
static ObjectPropertyResult QQmlPrivate::writeBackFallbackProperty (QV4::Lookup *l, QObject *object, void *source)
 
ObjectPropertyResult QQmlPrivate::loadObjectAsVariant (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
ObjectPropertyResult QQmlPrivate::writeBackObjectAsVariant (QV4::Lookup *l, QObject *object, void *source)
 
ObjectPropertyResult QQmlPrivate::loadFallbackAsVariant (QV4::Lookup *l, QObject *object, void *target, const AOTCompiledContext *aotContext)
 
ObjectPropertyResult QQmlPrivate::writeBackFallbackAsVariant (QV4::Lookup *l, QObject *object, void *source)
 
template<bool StrictType, typename Op >
static ObjectPropertyResult QQmlPrivate::changeObjectProperty (QV4::Lookup *l, QObject *object, Op op)
 
template<bool StrictType = false>
static ObjectPropertyResult QQmlPrivate::resetObjectProperty (QV4::Lookup *l, QObject *object, QV4::ExecutionEngine *v4)
 
template<bool StrictType = false>
static ObjectPropertyResult QQmlPrivate::storeObjectProperty (QV4::Lookup *l, QObject *object, void *value)
 
template<typename Op >
static ObjectPropertyResult QQmlPrivate::changeFallbackProperty (QV4::Lookup *l, QObject *object, Op op)
 
static ObjectPropertyResult QQmlPrivate::storeFallbackProperty (QV4::Lookup *l, QObject *object, void *value)
 
static ObjectPropertyResult QQmlPrivate::resetFallbackProperty (QV4::Lookup *l, QObject *object, const QMetaProperty *property, QV4::ExecutionEngine *v4)
 
static bool QQmlPrivate::isTypeCompatible (QMetaType lookupType, QMetaType propertyType)
 
static ObjectPropertyResult QQmlPrivate::storeObjectAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *l, QObject *object, void *value)
 
static ObjectPropertyResult QQmlPrivate::storeFallbackAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *l, QObject *object, void *value)
 
static ObjectLookupResult QQmlPrivate::initObjectLookup (const AOTCompiledContext *aotContext, QV4::Lookup *l, QObject *object, QMetaType type)
 
static bool QQmlPrivate::initValueLookup (QV4::Lookup *l, QV4::ExecutableCompilationUnit *compilationUnit, const QMetaObject *metaObject, QMetaType type)
 
static void QQmlPrivate::amendException (QV4::ExecutionEngine *engine)
 
static bool QQmlPrivate::isUndefined (const void *value, QMetaType type)
 
template<QmlContextPropertyGetter qmlContextPropertyGetter>
static void QQmlPrivate::initTypeWrapperLookup (const AOTCompiledContext *context, QV4::Lookup *l, uint importNamespace)
 

Typedef Documentation

◆ ElementNames

using ElementNames = QVarLengthArray<const char *, 8>

Definition at line 529 of file qqml.cpp.

Function Documentation

◆ assignVersions()

template<typename Registration >
void assignVersions ( Registration * registration,
QTypeRevision revision,
QTypeRevision defaultVersion )

Definition at line 452 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), QTypeRevision::fromVersion(), QTypeRevision::hasMajorVersion(), QTypeRevision::hasMinorVersion(), QTypeRevision::majorVersion(), QTypeRevision::minorVersion(), and registration.

Referenced by doRegisterSingletonAndRevisions(), doRegisterTypeAndRevisions(), and QQmlPrivate::qmlregister().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ availableRevisions()

static QVector< QTypeRevision > availableRevisions ( const QMetaObject * metaObject)
static

Definition at line 422 of file qqml.cpp.

References availableRevisions(), QTypeRevision::fromEncodedVersion(), metaObject(), method, property, and QMetaObject::superClass().

Referenced by availableRevisions(), doRegisterTypeAndRevisions(), and prepareRevisions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkSingletonInstance()

static bool checkSingletonInstance ( QQmlEngine * engine,
QObject * instance )
static

Definition at line 362 of file qqml.cpp.

References engine, error, QQmlEnginePrivate::get(), QStringLiteral, and QObject::thread().

Referenced by QQmlPrivate::SingletonInstanceFunctor::operator()().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ classElementNames()

static ElementNames classElementNames ( const QMetaObject * metaObject)
static

Definition at line 530 of file qqml.cpp.

References QQmlPrivate::classInfo(), i, metaObject(), Q_ASSERT, qstrcmp(), and qWarning.

Referenced by QQmlPrivate::qmlregister().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doRegisterSingletonAndRevisions()

static void doRegisterSingletonAndRevisions ( const QQmlPrivate::RegisterSingletonTypeAndRevisions & type,
const ElementNames & elementNames )
static

Definition at line 707 of file qqml.cpp.

References assignVersions(), finalizeType(), QTypeRevision::fromVersion(), QTypeRevision::isValid(), prepareRevisions(), QQmlMetaType::registerSingletonType(), QQmlPrivate::revisionClassInfo(), QQmlPrivate::revisionClassInfos(), singletonInstanceInfo(), uniqueRevisions(), and QQmlPrivate::RegisterSingletonType::uri.

Referenced by QQmlPrivate::qmlregister().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doRegisterTypeAndRevisions()

static void doRegisterTypeAndRevisions ( const QQmlPrivate::RegisterTypeAndRevisions & type,
const ElementNames & elementNames )
static

◆ finalizeType()

static int finalizeType ( const QQmlType & dtype)
static

Definition at line 520 of file qqml.cpp.

References QQmlMetaType::registerUndeletableType().

Referenced by doRegisterSingletonAndRevisions(), and QQmlPrivate::qmlregister().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareRevisions()

static QVector< QTypeRevision > prepareRevisions ( const QMetaObject * metaObject,
QTypeRevision added )
static

Definition at line 463 of file qqml.cpp.

References availableRevisions(), and metaObject().

Referenced by doRegisterSingletonAndRevisions(), and doRegisterTypeAndRevisions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Q_DECLARE_LOGGING_CATEGORY() [1/2]

Q_DECLARE_LOGGING_CATEGORY ( lcJs )

◆ Q_DECLARE_LOGGING_CATEGORY() [2/2]

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY ( lcQml )

◆ qmlAttachedPropertiesFunction()

QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction ( QObject * object,
const QMetaObject * attachedMetaObject )

Definition at line 106 of file qqml.cpp.

References QQmlMetaType::attachedPropertiesFunc(), engine, QQmlEnginePrivate::get(), and qmlEngine().

Referenced by attachedObject(), and qmlAttachedPropertiesObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlAttachedPropertiesObject()

QObject * qmlAttachedPropertiesObject ( QObject * object,
QQmlAttachedPropertiesFunc func,
bool create )

Definition at line 114 of file qqml.cpp.

References create(), QQmlData::get(), and resolveAttachedProperties().

Referenced by attachedObject(), QQmlBindPrivate::decodeBinding(), QQmlPropertyPrivate::initProperty(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QV4::QQmlTypeWrapper::object(), qmlAttachedPropertiesObject(), QV4::QQmlTypeWrapper::toVariant(), QV4::QQmlTypeWrapper::virtualGet(), and QV4::QQmlTypeWrapper::virtualPut().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlClearTypeRegistrations()

void qmlClearTypeRegistrations ( )

Definition at line 230 of file qqml.cpp.

References QQmlEnginePrivate::baseModulesUninitialized, QQmlMetaType::clearTypeRegistrations(), and qmlClearEnginePlugins().

Referenced by runTests(), and QQuickControlsTestUtils::QQuickStyleHelper::updateStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlContext()

QQmlContext * qmlContext ( const QObject * obj)
related

Definition at line 75 of file qqml.cpp.

Referenced by QQuickPlatformColorDialog::QQuickPlatformColorDialog(), QQuickPlatformFileDialog::QQuickPlatformFileDialog(), QQuickPlatformFolderDialog::QQuickPlatformFolderDialog(), QQuickPlatformFontDialog::QQuickPlatformFontDialog(), QQuickPlatformMessageDialog::QQuickPlatformMessageDialog(), QV4::Script::Script(), QQuickLoaderPrivate::_q_sourceLoaded(), QQuickParentChange::actions(), QQuickAnchorChanges::actions(), QQuickPropertyChanges::actions(), QQmlWatcher::addWatch(), QQuickText::baseUrl(), QQuickTextEdit::baseUrl(), QQuickMenuPrivate::beginCreateItem(), QQuickMenuBarPrivate::beginCreateItem(), callWithContextObject(), callWithScopeObject(), QQuickPropertyChanges::changeExpression(), QQmlDelegateModel::classBegin(), QQuickPopup::classBegin(), QQuickRangeSlider::classBegin(), QQuickScrollBar::classBegin(), QQuickSpinBox::classBegin(), QDeclarativeGeoMapItemView::classBegin(), QQuickLoaderPrivate::clear(), QQmlBind::componentComplete(), QQuickTextEdit::componentComplete(), QQmlBinding::create(), createBindingInScope(), QQuickLoaderPrivate::createComponent(), QQuickItemViewPrivate::createComponentItem(), QQuickSwipePrivate::createDelegateItem(), QQuickFolderBreadcrumbBarPrivate::createDelegateItem(), createDimmer(), QQmlPropertyBinding::createFromScriptString(), QQuickSplitViewPrivate::createHandleItem(), QQuickPathViewPrivate::createHighlight(), QQuickIconLabelPrivate::createImage(), QQuickAbstractAnimationPrivate::createProperty(), QQmlJavaScriptExpression::createQmlBinding(), QQuickDialogButtonBoxPrivate::createStandardButton(), QQuickTableViewPrivate::createWrapperModel(), QQmlComponent::creationContext(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlBindPrivate::decodeBinding(), QQuickTextPrivate::ensureDoc(), QQmlJavaScriptExpression::evalFunction(), QQuickVisualTestUtils::findItem(), QV4::QObjectWrapper::findProperty(), QV4::QObjectWrapper::findProperty(), QQuickStackElement::fromString(), QQuick3DPhysicsHeightFieldManager::getHeightField(), QQuick3DPhysicsMeshManager::getMesh(), QV4::getPropertyFromImports(), QQuickListViewPrivate::getSectionItem(), QuickTestResult::grabImage(), QQuickFileDialogDelegatePrivate::highlightFile(), QQmlExpressionPrivate::init(), QQuickTumblerAttachedPrivate::init(), QQuickStackElement::initialize(), QQmlComponentPrivate::initializeObjectWithInitialProperties(), QQDMIncubationTask::initializeRequiredProperties(), QQmlPrivate::AOTCompiledContext::initLoadAttachedLookup(), QQmlPrivate::AOTCompiledContext::initLoadContextIdLookup(), QQuickContainer::isContent(), QQuickFolderBreadcrumbBar::isContent(), QQuickSplitView::isContent(), QQuickTextDocumentPrivate::load(), QQuickAnimatedImage::load(), QQuickBorderImage::load(), QQuickStackElement::load(), QQmlPrivate::AOTCompiledContext::loadContextIdLookup(), QQuickDragAttachedPrivate::loadPixmap(), QQuickImageBase::loadPixmap(), QQuickVectorImagePrivate::loadSvg(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QQmlContextWrapper::lookupScript(), QV4::QQmlContextWrapper::lookupType(), operator<<(), QQuickMediaPlayer::qmlSetSource(), QQuickSoundEffect::qmlSetSource(), QQmlXmlListModel::reload(), QQuickText::resetBaseUrl(), QQuickTextEdit::resetBaseUrl(), JavaScriptJob::run(), ValueLookupJob::run(), QuickTestImageObject::save(), QQmlDebugTranslationServicePrivate::sendTranslatableTextOccurrences(), QQuickLoader::setActive(), QQuick3DLoader::setActive(), QQuickPageIndicatorPrivate::setContextProperty(), QQuickItemView::setDelegate(), QQuickPathView::setDelegate(), QQuickRepeater::setDelegate(), QQuick3DRepeater::setDelegate(), QQmlComponentPrivate::setInitialProperties(), QV4::QmlIncubatorObject::setInitialState(), QQuickLoaderPrivate::setInitialState(), QQuickTextPrivate::setLineGeometry(), QQuickItemView::setModel(), QQuickPathView::setModel(), QQuickRepeater::setModel(), QQuick3DRepeater::setModel(), QQmlBind::setObject(), QQmlBind::setProperty(), QV4::QObjectWrapper::setQmlProperty(), QQuickWorkerScript::setSource(), QQuick3DRuntimeLoader::setSource(), QQuickFontLoader::setSource(), QQuick3DAmbientSound::setSource(), QQuick3DSpatialSound::setSource(), QQuickPdfDocument::setSource(), QQmlJavaScriptExpression::setupFunction(), QQuickTreeViewDelegatePrivate::toggleExpanded(), QQuick3DModel::translateMeshSource(), QQuickIconImagePrivate::updateIcon(), QQuickTextPrivate::updateLayout(), QQuick3DCustomMaterial::updateSpatialNode(), QQuick3DEffect::updateSpatialNode(), QQuick3DModel::updateSpatialNode(), QQuick3DTexture::updateSpatialNode(), QV4::QObjectWrapper::virtualGet(), QV4::QObjectWrapper::virtualGetOwnProperty(), QV4::QObjectWrapper::virtualPut(), QV4::QObjectWrapper::virtualResolveLookupGetter(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

◆ qmlEngine()

QQmlEngine * qmlEngine ( const QObject * obj)
related

Definition at line 80 of file qqml.cpp.

Referenced by QQmlDataBlob::QQmlDataBlob(), QQmlInfo::~QQmlInfo(), QQuickLoaderPrivate::_q_sourceLoaded(), QQuickPropertyChanges::actions(), QQmlPreviewHandler::addEngine(), QQuickDesignerSupportProperties::allPropertyNames(), QQmlListModelParser::applyBindings(), QuickTestUtil::callerFile(), QuickTestUtil::callerLine(), QQuickWindowQmlImpl::classBegin(), QQmlTableModel::clear(), QQuickCanvasItem::componentComplete(), QTestRootObject::create(), createBindingInScope(), QQuickControlsTestUtils::ComponentCreator::createComponent(), QQmlTableModel::data(), QQmlDebugTranslationServiceImpl::engineAboutToBeAdded(), QQmlPreviewServiceImpl::engineAboutToBeAdded(), QQmlProfilerServiceImpl::engineAboutToBeAdded(), QQmlDebugTranslationServiceImpl::engineAboutToBeRemoved(), QQmlPreviewServiceImpl::engineAboutToBeRemoved(), QQmlBinding::evaluate(), QQmlJavaScriptExpression::evaluate(), QQmlJavaScriptExpression::evaluate(), QQuickSpinBoxPrivate::evaluateTextFromValue(), QQuickSpinBoxPrivate::evaluateValueFromText(), QQuickWorkerScript::event(), QQuickStackView::find(), findAttachedParent(), QQuickStackElement::fromStackViewArg(), QQuickStackElement::fromString(), QQmlEnginePrivate::get(), QQmlConnectionSlotDispatcher::impl(), QV4::QObjectSlotDispatcher::impl(), QQuickLoaderPrivate::incubatorStateChanged(), QQuickContext2D::init(), QQuickStackElement::initialize(), QQuickToolTipAttachedPrivate::instance(), QQuickImageBase::itemChange(), QQuickAnimatedImage::load(), QQuickBorderImage::load(), QQuickPdfPageImage::load(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QQmlPrivate::AOTCompiledContext::loadContextIdLookup(), QQuickCanvasItem::loadImage(), QQuickImageBase::loadPixmap(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlTypeWrapper::metaObject(), QV4Include::method_include(), QV4::QQmlTypeWrapper::object(), QQuickStackViewPrivate::parseElements(), propertyNameListForWritableProperties(), QQmlComponent::qmlAttachedProperties(), qmlAttachedPropertiesFunction(), QQmlPreviewHandler::removeEngine(), QQmlPrivate::AOTCompiledContext::resolveLoggingCategory(), JavaScriptJob::run(), QQmlTableModel::setData(), QQmlEnginePrivate::setInternalContext(), QQuickLoader::setSource(), QQuickLoader::setSource(), QV4::QQmlTypeWrapper::singletonObject(), QQmlBinding::slowWrite(), QQuickSpinBox::textFromValue(), QV4::QQmlTypeWrapper::toVariant(), QuickTestUtil::typeName(), QQmlBinding::update(), QQuickMultiEffectPrivate::updateBlurItemsAmount(), QQuickCanvasItem::updatePolish(), QQuickShaderEffectPrivate::updatePolish(), QQuickSpinBox::valueFromText(), and QV4::ModelObject::virtualGet().

◆ qmlExecuteDeferred()

void qmlExecuteDeferred ( QObject * object)

This method completes the setup of all deferred properties of object. Deferred properties are declared with Q_CLASSINFO("DeferredPropertyNames", "comma,separated,property,list");

Any binding to a deferred property is not executed when the object is instantiated, but only when completion is requested with qmlExecuteDeferred, or by manually calling QQmlComponentPrivate::beginDeferred and completeDeferred.

See also
QV4::CompiledData::Binding::IsDeferredBinding, QV4::CompiledData::Object::HasDeferredBindings, QQmlData::deferData, QQmlObjectCreator::setupBindings

Definition at line 49 of file qqml.cpp.

References QQmlComponentPrivate::beginDeferred(), QQmlComponentPrivate::completeDeferred(), QQmlData::get(), QQmlEnginePrivate::get(), QQmlMetaType::propertyCache(), and state.

Referenced by QQuickState::apply(), QQuickStatePrivate::generateActionList(), QQuickTransition::prepare(), prepareTransition(), QQuickSwipeTransitionManager::transition(), QQuickDelayTransitionManager::transition(), and QQuickBehavior::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlExtendedObject()

QObject * qmlExtendedObject ( QObject * object)

Definition at line 129 of file qqml.cpp.

References QQmlPrivate::qmlExtendedObject().

Referenced by QQuickPdfDocument::classBegin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlProtectModule()

bool qmlProtectModule ( const char * uri,
int majVersion )

Definition at line 238 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), QString::fromUtf8(), and QQmlMetaType::protectModule().

Referenced by QQmlEnginePrivate::init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlRegisterModule()

void qmlRegisterModule ( const char * uri,
int versionMajor,
int versionMinor )

Definition at line 245 of file qqml.cpp.

References QTypeRevision::fromVersion(), and QQmlMetaType::registerModule().

Referenced by QWaylandCompositorIviApplicationPlugin::defineModule(), QWaylandCompositorPresentationTimePlugin::defineModule(), QQtWaylandShellPlugin::defineModule(), QWaylandCompositorWlShellPlugin::defineModule(), QWaylandCompositorXdgShellPlugin::defineModule(), qml_register_types_QtQml(), and QWaylandTextureSharingPlugin::registerTypes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qmlRegisterTypeNotAvailable()

int qmlRegisterTypeNotAvailable ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & message )

Definition at line 913 of file qqml.cpp.

◆ qmlRegisterUncreatableMetaObject()

int qmlRegisterUncreatableMetaObject ( const QMetaObject & staticMetaObject,
const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & reason )

Definition at line 195 of file qqml.cpp.

References QQmlPrivate::RegisterType::CurrentVersion, QTypeRevision::fromVersion(), QQmlPrivate::None, QQmlPrivate::qmlregister(), QQmlPrivate::TypeRegistration, and QTypeRevision::zero().

+ Here is the call graph for this function:

◆ qmlTypeId()

int qmlTypeId ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )

Definition at line 357 of file qqml.cpp.

References QTypeRevision::fromVersion(), and QQmlMetaType::typeId().

Referenced by QQmlMetaType::qmlTypeById(), and QQmlEngine::singletonInstance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveAttachedProperties()

static QObject * resolveAttachedProperties ( QQmlAttachedPropertiesFunc pf,
QQmlData * data,
QObject * object,
bool create )
static

Definition at line 88 of file qqml.cpp.

References create().

Referenced by qmlAttachedPropertiesObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveImport()

static QQmlDirParser::Import resolveImport ( const QString & uri,
int importMajor,
int importMinor )
static

Definition at line 250 of file qqml.cpp.

References QQmlDirParser::Import::Auto, QQmlDirParser::Import::Default, QTypeRevision::fromMajorVersion(), QTypeRevision::fromVersion(), QQmlModuleImportAuto, and QQmlModuleImportLatest.

Referenced by QQmlEngine::qmlRegisterModuleImport(), and QQmlEngine::qmlUnregisterModuleImport().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveModuleVersion()

static QTypeRevision resolveModuleVersion ( int moduleMajor)
static

Definition at line 261 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), and QQmlModuleImportModuleAny.

Referenced by QQmlEngine::qmlRegisterModuleImport(), and QQmlEngine::qmlUnregisterModuleImport().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ singletonInstanceInfo() [1/2]

Definition at line 510 of file qqml.cpp.

References QQmlRefPointer< const SingletonInstanceInfo >::Adopt, QQmlType::SingletonInstanceInfo::create(), and QQmlTypeLoader::normalize().

+ Here is the call graph for this function:

◆ singletonInstanceInfo() [2/2]

static QQmlType::SingletonInstanceInfo::ConstPtr singletonInstanceInfo ( const QQmlPrivate::RegisterSingletonType & type)
static

Definition at line 499 of file qqml.cpp.

References QQmlRefPointer< const SingletonInstanceInfo >::Adopt, and QQmlType::SingletonInstanceInfo::create().

Referenced by doRegisterSingletonAndRevisions(), and QQmlPrivate::qmlregister().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ uniqueRevisions()

static void uniqueRevisions ( QVector< QTypeRevision > * revisions,
QTypeRevision defaultVersion,
QTypeRevision added )
static

Definition at line 470 of file qqml.cpp.

References QTypeRevision::fromVersion(), QTypeRevision::hasMajorVersion(), it, QTypeRevision::majorVersion(), and QTypeRevision::minorVersion().

Referenced by doRegisterSingletonAndRevisions(), doRegisterTypeAndRevisions(), and QQmlPrivate::qmlregister().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: