![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlengine_p.h>
Classes | |
struct | Incubator |
Static Public Attributes | |
static bool | baseModulesUninitialized = true |
static const quintptr | profiler = 0 |
static std::atomic< bool > | qml_debugging_enabled {false} |
\qmltype QtObject \instantiates QObject \inqmlmodule QtQml | |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 107 of file qqmlengine_p.h.
|
inlineexplicit |
Definition at line 111 of file qqmlengine_p.h.
|
override |
Definition at line 198 of file qqmlengine.cpp.
References QQmlMetaType::freeUnusedTypesAndCaches(), incubationController, inProgressCreations, profiler, qDeleteAll(), and qWarning.
|
static |
Definition at line 129 of file qqmlengine.cpp.
Referenced by QQuickDesignerSupport::activateDesignerMode().
QV4::ExecutableCompilationUnit * QQmlEnginePrivate::compilationUnitFromUrl | ( | const QUrl & | url | ) |
Definition at line 2014 of file qqmlengine.cpp.
References QV4::ExecutableCompilationUnit::linkToEngine(), and url.
QQmlRefPointer< QQmlContextData > QQmlEnginePrivate::createInternalContext | ( | const QQmlRefPointer< QV4::ExecutableCompilationUnit > & | unit, |
const QQmlRefPointer< QQmlContextData > & | parentContext, | ||
int | subComponentIndex, | ||
bool | isComponentRoot | ||
) |
Definition at line 2025 of file qqmlengine.cpp.
References QV4::Scoped< T >::asReturnedValue(), QQmlData::context, QQmlContextData::createRefCounted(), i, QQmlContextData::initFromTypeCompilationUnit(), QV4::ExecutionEngine::newArrayObject(), Q_ASSERT, QQmlContextData::setImportedScripts(), QQmlContextData::setImports(), and QQmlContextData::setInternal().
|
inline |
Definition at line 319 of file qqmlengine_p.h.
References engine, Q_ASSERT, Q_LIKELY, Q_UNLIKELY, scarceResourcesRefCount, and v4engine().
Referenced by QQmlComponentPrivate::beginCreate(), QQmlBinding::evaluate(), QQmlBoundSignalExpression::evaluate(), QQmlIncubatorPrivate::incubate(), QQmlVMEMetaObject::metaCall(), and QQmlExpressionPrivate::value().
|
static |
Definition at line 124 of file qqmlengine.cpp.
Referenced by QAbstractAnimationJob::start(), QQuickBoundaryRule::write(), and QQuickBehavior::write().
void QQmlEnginePrivate::executeRuntimeFunction | ( | const QUrl & | url, |
qsizetype | functionIndex, | ||
QObject * | thisObject, | ||
int | argc = 0 , |
||
void ** | args = nullptr , |
||
QMetaType * | types = nullptr |
||
) |
Definition at line 1955 of file qqmlengine.cpp.
void QQmlEnginePrivate::executeRuntimeFunction | ( | const QV4::ExecutableCompilationUnit * | unit, |
qsizetype | functionIndex, | ||
QObject * | thisObject, | ||
int | argc = 0 , |
||
void ** | args = nullptr , |
||
QMetaType * | types = nullptr |
||
) |
Definition at line 1965 of file qqmlengine.cpp.
References args, QV4::ExecutionEngine::callInContext(), QV4::QmlContext::create(), function, QQmlData::get(), QQmlData::outerContext, Q_ASSERT, QV4::ExecutableCompilationUnit::runtimeFunctions, and QV4::ExecutionEngine::scriptContext().
|
inlinestatic |
Definition at line 349 of file qqmlengine_p.h.
|
inlinestatic |
Definition at line 371 of file qqmlengine_p.h.
References contextEngine().
|
inlinestatic |
Definition at line 366 of file qqmlengine_p.h.
References contextEngine().
|
inlinestatic |
Definition at line 342 of file qqmlengine_p.h.
Referenced by CapturePreventer::CapturePreventer(), QV4::Function::Function(), QQmlExpression::QQmlExpression(), QQmlTranslationBinding::QQmlTranslationBinding(), QQmlIncubationController::~QQmlIncubationController(), QQmlJavaScriptExpression::allocatePropertyChangeTrigger(), QQmlComponentPrivate::beginCreate(), QtQuickPrivate::beginDeferred(), QQmlBindPrivate::buildBindEntries(), QQmlPropertyCapture::captureTranslation(), checkSingletonInstance(), QQmlComponentPrivate::completeCreate(), QtQuickPrivate::completeDeferred(), contextEngine(), QQmlBinding::create(), QQmlComponent::create(), QQmlPropertyBinding::createFromScriptString(), createPixmapDataSync(), QQmlJavaScriptExpression::createQmlBinding(), QtObject::createQmlObject(), QQmlComponentPrivate::createWithProperties(), QQmlTypeData::done(), QQmlBinding::doUpdate(), QQmlIncubationController::engine(), QQmlProfilerServiceImpl::engineAboutToBeAdded(), enumForSingleton(), QQmlJavaScriptExpression::evalFunction(), QQmlBinding::evaluate(), QQmlBoundSignalExpression::evaluate(), QtObject::exit(), QQmlObjectCreator::finalize(), get(), QV4::QObjectWrapper::getProperty(), QV4::QQmlContextWrapper::getPropertyAndBase(), QV4::QObjectSlotDispatcher::impl(), QQmlTypeLoader::importDatabase(), QQmlIncubatorPrivate::incubate(), QQmlComponentPrivate::incubateObject(), QQDMIncubationTask::initializeRequiredProperties(), QQmlPropertyPrivate::initProperty(), QQmlGadgetPtrWrapper::instance(), instanceOfQObject(), QQuickPixmap::load(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QQmlPrivate::AOTCompiledContext::loadContextIdLookup(), QQmlComponent::loadFromModule(), QQmlPrivate::AOTCompiledContext::loadTypeLookup(), QQmlComponentPrivate::loadUrl(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QQmlTypeWrapper::lookupSingletonMethod(), QV4::QQmlTypeWrapper::lookupSingletonProperty(), QQmlVMEMetaObject::metaCall(), QV4::QQmlTypeWrapper::metaObject(), QQmlJavaScriptExpressionGuard::New(), QV4::QQmlTypeWrapper::object(), QQmlPrivate::SingletonInstanceFunctor::operator()(), QQmlPrivate::propertyCapture(), QQmlComponent::qmlAttachedProperties(), qmlAttachedPropertiesFunction(), qmlExecuteDeferred(), qmlsqldatabase_changeVersion(), qQmlTranslationPropertyBindingCreateBinding(), QtObject::quit(), QQmlScriptData::scriptValueForContext(), QQmlComponent::setData(), QQmlTableInstanceModel::setRequiredProperty(), QV4::QQmlTypeWrapper::singletonObject(), QV4::QmlIncubatorObject::statusChanged(), QV4::QQmlTypeWrapper::toVariant(), QQmlBinding::update(), QQmlExpressionPrivate::value(), QV4::QQmlTypeWrapper::virtualGet(), QV4::QQmlScopedEnumWrapper::virtualGet(), QV4::ModelObject::virtualGet(), QV4::QQmlTypeWrapper::virtualPut(), QV4::QQmlTypeWrapper::virtualResolveLookupGetter(), warning(), warning(), and QQmlPropertyPrivate::write().
|
inlinestatic |
Definition at line 376 of file qqmlengine_p.h.
References Q_ASSERT.
|
inlinestatic |
Definition at line 383 of file qqmlengine_p.h.
References e, get(), and qmlEngine().
|
inlinestatic |
Definition at line 335 of file qqmlengine_p.h.
Referenced by QQuickSpinBoxPrivate::evaluateTextFromValue(), QQuickSpinBoxPrivate::evaluateValueFromText(), and QQuickStackElement::initialize().
QSharedPointer< QQmlImageProviderBase > QQmlEnginePrivate::imageProvider | ( | const QString & | providerId | ) | const |
Definition at line 834 of file qqmlengine.cpp.
References imageProviderMutex, imageProviders, QString::toLower(), and QHash< Key, T >::value().
Referenced by createPixmapDataSync(), and QQuickPixmap::load().
void QQmlEnginePrivate::incubate | ( | QQmlIncubator & | i, |
const QQmlRefPointer< QQmlContextData > & | forContext | ||
) |
Definition at line 11 of file qqmlincubator.cpp.
References QQmlIncubator::Asynchronous, QQmlIncubator::AsynchronousIfNested, i, QQmlIncubationController::incubatingObjectCountChanged(), incubationController, incubatorCount, incubatorList, inProgressCreations, QQmlIncubator::Loading, QQmlIncubator::Synchronous, and watcher.
Referenced by QQmlComponent::create(), and QQmlComponentPrivate::incubateObject().
void QQmlEnginePrivate::init | ( | ) |
Definition at line 472 of file qqmlengine.cpp.
References baseModulesUninitialized, QQmlData::init(), qmlRegisterType< void >(), QQmlMetaType::registerTypeAlias(), and rootContext.
bool QQmlEnginePrivate::isScriptLoaded | ( | const QUrl & | url | ) | const |
Definition at line 1950 of file qqmlengine.cpp.
References url.
bool QQmlEnginePrivate::isTypeLoaded | ( | const QUrl & | url | ) | const |
Definition at line 1945 of file qqmlengine.cpp.
References url.
QString QQmlEnginePrivate::offlineStorageDatabaseDirectory | ( | ) | const |
Definition at line 1871 of file qqmlengine.cpp.
References QDir::separator().
Referenced by qmlsqldatabase_changeVersion().
QQmlEnginePrivate::Q_OBJECT_BINDABLE_PROPERTY | ( | QQmlEnginePrivate | , |
QString | , | ||
translationLanguage | |||
) |
|
static |
Definition at line 1634 of file qqmlengine.cpp.
References error, fileName, qmlConvertSourceCoordinate< quint32, int >(), qPrintable, and qWarning.
Referenced by QQmlScriptBlob::dataReceived(), and QV4::Script::precompile().
|
inline |
Definition at line 310 of file qqmlengine_p.h.
References scarceResourcesRefCount.
Referenced by QQmlComponentPrivate::beginCreate(), QQmlBinding::evaluate(), QQmlBoundSignalExpression::evaluate(), QQmlIncubatorPrivate::incubate(), QQmlVMEMetaObject::metaCall(), and QQmlExpressionPrivate::value().
void QQmlEnginePrivate::sendExit | ( | int | retCode = 0 | ) |
Definition at line 1545 of file qqmlengine.cpp.
References emit, qWarning, and SIGNAL.
Referenced by QtObject::exit().
void QQmlEnginePrivate::sendQuit | ( | ) |
Definition at line 1536 of file qqmlengine.cpp.
References emit, qWarning, and SIGNAL.
Referenced by QtObject::quit().
|
inlinestatic |
Definition at line 240 of file qqmlengine_p.h.
References context, QQmlData::get(), Q_ASSERT, and qmlEngine().
Definition at line 1878 of file qqmlengine.cpp.
References arg, QString::asprintf(), component(), QQmlData::ensurePropertyCache(), error, QString::fromUtf8(), QQmlData::get(), QQmlContextData::get(), QUrl::isEmpty(), o, QQmlComponent::PreferSynchronous, Q_ASSERT, QQmlType::SingletonInstanceInfo::qobjectCallback, qPrintable, QtCriticalMsg, QQmlType::SingletonInstanceInfo::scriptCallback, QJSValue::UndefinedValue, and QQmlType::SingletonInstanceInfo::url.
T QQmlEnginePrivate::singletonInstance | ( | const QQmlType & | type | ) |
Definition at line 395 of file qqmlengine_p.h.
Q_QML_PRIVATE_EXPORT QJSValue QQmlEnginePrivate::singletonInstance | ( | const QQmlType & | type | ) |
|
inline |
Definition at line 139 of file qqmlengine_p.h.
Referenced by QQmlTypeCompiler::compile(), dereferenceScarceResources(), and QQmlPropertyPrivate::write().
|
inline |
Definition at line 214 of file qqmlengine_p.h.
References QSet< T >::end(), QSet< T >::find(), it, and QQmlMetaType::valueType().
Referenced by QQmlGadgetPtrWrapper::instance().
Definition at line 1594 of file qqmlengine.cpp.
References dumpwarning(), and emit.
Definition at line 1586 of file qqmlengine.cpp.
References dumpwarning(), emit, and error.
Referenced by QQmlInfo::~QQmlInfo(), QQuickLoaderPrivate::_q_sourceLoaded(), checkSingletonInstance(), QQmlIncubator::clear(), QQmlComponentPrivate::complete(), QQmlJavaScriptExpression::createQmlBinding(), QQmlJavaScriptExpression::evalFunction(), QQuickWorkerScript::event(), QQmlApplicationEnginePrivate::finishLoad(), QV4::generateWarning(), QV4::QObjectSlotDispatcher::impl(), QQmlIncubatorPrivate::incubate(), QQuickLoaderPrivate::incubatorStateChanged(), QQmlVMEMetaObject::metaCall(), QQmlPrivate::SingletonInstanceFunctor::operator()(), QQmlScriptData::scriptValueForContext(), QV4::QmlIncubatorObject::statusChanged(), warning(), and warning().
|
static |
Definition at line 1610 of file qqmlengine.cpp.
References dumpwarning(), engine, error, get(), and warning().
|
static |
Definition at line 1602 of file qqmlengine.cpp.
References dumpwarning(), engine, error, get(), and warning().
|
static |
Definition at line 1626 of file qqmlengine.cpp.
References dumpwarning(), engine, and error.
|
static |
Definition at line 1618 of file qqmlengine.cpp.
References dumpwarning(), engine, and error.
QQmlObjectCreator* QQmlEnginePrivate::activeObjectCreator = nullptr |
Definition at line 147 of file qqmlengine_p.h.
|
static |
Definition at line 117 of file qqmlengine_p.h.
Referenced by init(), and qmlClearTypeRegistrations().
QUrl QQmlEnginePrivate::baseUrl |
Definition at line 145 of file qqmlengine_p.h.
QQmlDelayedError* QQmlEnginePrivate::erroredBindings = nullptr |
Definition at line 136 of file qqmlengine_p.h.
Referenced by QQmlIncubator::clear(), QQmlComponentPrivate::complete(), and QQmlIncubatorPrivate::incubate().
|
mutable |
Definition at line 154 of file qqmlengine_p.h.
Referenced by imageProvider().
QHash<QString,QSharedPointer<QQmlImageProviderBase> > QQmlEnginePrivate::imageProviders |
Definition at line 155 of file qqmlengine_p.h.
Referenced by imageProvider().
QQmlImportDatabase QQmlEnginePrivate::importDatabase |
Definition at line 164 of file qqmlengine_p.h.
Referenced by QQmlTypeLoader::importDatabase().
QQmlIncubationController* QQmlEnginePrivate::incubationController = nullptr |
Definition at line 176 of file qqmlengine_p.h.
Referenced by ~QQmlEnginePrivate(), QQmlIncubatorPrivate::clear(), and incubate().
unsigned int QQmlEnginePrivate::incubatorCount = 0 |
Definition at line 175 of file qqmlengine_p.h.
Referenced by QQmlIncubatorPrivate::clear(), incubate(), QQmlIncubationController::incubateFor(), QQmlIncubationController::incubateWhile(), and QQmlIncubationController::incubatingObjectCount().
QIntrusiveList<Incubator, &Incubator::next> QQmlEnginePrivate::incubatorList |
Definition at line 174 of file qqmlengine_p.h.
Referenced by incubate(), QQmlIncubationController::incubateFor(), and QQmlIncubationController::incubateWhile().
int QQmlEnginePrivate::inProgressCreations = 0 |
Definition at line 137 of file qqmlengine_p.h.
Referenced by ~QQmlEnginePrivate(), QQmlComponentPrivate::beginCreate(), QtQuickPrivate::beginDeferred(), QQmlComponentPrivate::beginDeferred(), QQmlBindPrivate::buildBindEntries(), QQmlIncubator::clear(), QQmlComponentPrivate::complete(), QQmlComponentPrivate::completeCreate(), incubate(), and QQmlIncubatorPrivate::incubate().
QRecyclePool<QQmlJavaScriptExpressionGuard> QQmlEnginePrivate::jsExpressionGuardPool |
Definition at line 121 of file qqmlengine_p.h.
Referenced by QQmlJavaScriptExpressionGuard::New().
|
mutable |
Definition at line 212 of file qqmlengine_p.h.
QString QQmlEnginePrivate::offlineStoragePath |
Definition at line 167 of file qqmlengine_p.h.
bool QQmlEnginePrivate::outputWarningsToMsgLog = true |
Definition at line 133 of file qqmlengine_p.h.
|
static |
Definition at line 128 of file qqmlengine_p.h.
Referenced by ~QQmlEnginePrivate().
QQmlPropertyCapture* QQmlEnginePrivate::propertyCapture = nullptr |
Definition at line 119 of file qqmlengine_p.h.
Referenced by CapturePreventer::CapturePreventer(), CapturePreventer::~CapturePreventer(), QQmlJavaScriptExpressionCapture::~QQmlJavaScriptExpressionCapture(), QV4::QObjectWrapper::getProperty(), QQmlPrivate::propertyCapture(), searchContextProperties(), and QV4::ModelObject::virtualGet().
|
static |
\qmltype QtObject \instantiates QObject \inqmlmodule QtQml
A basic QML type.
The QtObject type is a non-visual element which contains only the objectName property.
It can be useful to create a QtObject if you need an extremely lightweight type to enclose a set of custom properties:
It can also be useful for C++ integration, as it is just a plain QObject. See the QObject documentation for further details.
\qmlproperty string QtObject::objectName This property holds the QObject::objectName for this specific object instance.
This allows a C++ application to locate an item within a QML component using the QObject::findChild() method. For example, the following C++ application locates the child \l Rectangle item and dynamically changes its color
value:
\qml MyRect.qml
import QtQuick 2.0 Item { width: 200; height: 200 Rectangle { anchors.fill: parent color: "red" objectName: "myRect" } } \endqml \code // main.cpp QQuickView view; view.setSource(QUrl::fromLocalFile("MyRect.qml")); view.show(); QQuickItem *item = view.rootObject()->findChild<QQuickItem*>("myRect"); if (item) item->setProperty("color", QColor(Qt::yellow)); \endcode
Definition at line 210 of file qqmlengine_p.h.
QRecyclePool<TriggerList> QQmlEnginePrivate::qPropertyTriggerPool |
Definition at line 122 of file qqmlengine_p.h.
Referenced by QQmlJavaScriptExpression::allocatePropertyChangeTrigger().
QQmlContext* QQmlEnginePrivate::rootContext = nullptr |
Definition at line 124 of file qqmlengine_p.h.
Referenced by init().
int QQmlEnginePrivate::scarceResourcesRefCount = 0 |
Definition at line 160 of file qqmlengine_p.h.
Referenced by dereferenceScarceResources(), and referenceScarceResources().
QQmlTypeLoader QQmlEnginePrivate::typeLoader |
Definition at line 165 of file qqmlengine_p.h.
Referenced by QV4::Function::Function(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), QtObject::createQmlObject(), QQmlProfilerServiceImpl::engineAboutToBeAdded(), instanceOfQObject(), QQmlPrivate::AOTCompiledContext::loadTypeLookup(), QQmlComponentPrivate::loadUrl(), QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter(), and QQmlComponent::setData().
QList<QQmlAbstractUrlInterceptor *> QQmlEnginePrivate::urlInterceptors |
Definition at line 158 of file qqmlengine_p.h.