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
QQmlEnginePrivate Class Reference

#include <qqmlengine_p.h>

+ Inheritance diagram for QQmlEnginePrivate:
+ Collaboration diagram for QQmlEnginePrivate:

Classes

struct  Incubator
 

Public Member Functions

 QQmlEnginePrivate (QQmlEngine *q)
 
 ~QQmlEnginePrivate () override
 
void init ()
 
 Q_OBJECT_BINDABLE_PROPERTY (QQmlEnginePrivate, QString, translationLanguage)
 
QV4::ExecutionEnginev4engine () const
 
QSharedPointer< QQmlImageProviderBaseimageProvider (const QString &providerId) const
 
void referenceScarceResources ()
 
void dereferenceScarceResources ()
 
void incubate (QQmlIncubator &, const QQmlRefPointer< QQmlContextData > &)
 
QString offlineStorageDatabaseDirectory () const
 
bool isTypeLoaded (const QUrl &url) const
 
bool isScriptLoaded (const QUrl &url) const
 
template<typename T >
singletonInstance (const QQmlType &type)
 
void sendQuit ()
 
void sendExit (int retCode=0)
 
void warning (const QQmlError &)
 
void warning (const QList< QQmlError > &)
 
QQmlGadgetPtrWrappervalueTypeInstance (QMetaType type)
 
void executeRuntimeFunction (const QUrl &url, qsizetype functionIndex, QObject *thisObject, int argc=0, void **args=nullptr, QMetaType *types=nullptr)
 
void executeRuntimeFunction (const QV4::ExecutableCompilationUnit *unit, qsizetype functionIndex, QObject *thisObject, int argc=0, void **args=nullptr, QMetaType *types=nullptr)
 
QV4::ExecutableCompilationUnitcompilationUnitFromUrl (const QUrl &url)
 
QQmlRefPointer< QQmlContextDatacreateInternalContext (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, const QQmlRefPointer< QQmlContextData > &parentContext, int subComponentIndex, bool isComponentRoot)
 
template<>
QJSValue singletonInstance (const QQmlType &type)
 
template<>
Q_QML_EXPORT QJSValue singletonInstance (const QQmlType &type)
 
- Public Member Functions inherited from QJSEnginePrivate
 QJSEnginePrivate ()=default
 
 ~QJSEnginePrivate () override
 
void uiLanguageChanged ()
 
 Q_OBJECT_BINDABLE_PROPERTY (QJSEnginePrivate, QString, uiLanguage, &QJSEnginePrivate::uiLanguageChanged)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static void warning (QQmlEngine *, const QQmlError &)
 
static void warning (QQmlEngine *, const QList< QQmlError > &)
 
static void warning (QQmlEnginePrivate *, const QQmlError &)
 
static void warning (QQmlEnginePrivate *, const QList< QQmlError > &)
 
static QV4::ExecutionEnginegetV4Engine (QQmlEngine *e)
 
static QQmlEnginePrivateget (QQmlEngine *e)
 
static const QQmlEnginePrivateget (const QQmlEngine *e)
 
static QQmlEnginePrivateget (QQmlContext *c)
 
static QQmlEnginePrivateget (const QQmlRefPointer< QQmlContextData > &c)
 
static QQmlEngineget (QQmlEnginePrivate *p)
 
static QQmlEnginePrivateget (QV4::ExecutionEngine *e)
 
static QList< QQmlErrorqmlErrorFromDiagnostics (const QString &fileName, const QList< QQmlJS::DiagnosticMessage > &diagnosticMessages)
 
static bool designerMode ()
 
static void activateDesignerMode ()
 
static void setInternalContext (QObject *This, const QQmlRefPointer< QQmlContextData > &context, QQmlContextData::QmlObjectKind kind)
 
- Static Public Member Functions inherited from QJSEnginePrivate
static QJSEnginePrivateget (QJSEngine *e)
 
static const QJSEnginePrivateget (const QJSEngine *e)
 
static QJSEnginePrivateget (QV4::ExecutionEngine *e)
 
static void addToDebugServer (QJSEngine *q)
 
static void removeFromDebugServer (QJSEngine *q)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

QQmlPropertyCapturepropertyCapture = nullptr
 
QRecyclePool< QQmlJavaScriptExpressionGuardjsExpressionGuardPool
 
QRecyclePool< TriggerListqPropertyTriggerPool
 
QQmlContextrootContext = nullptr
 
bool outputWarningsToMsgLog = true
 
QQmlDelayedErrorerroredBindings = nullptr
 
int inProgressCreations = 0
 
QUrl baseUrl
 
QQmlObjectCreatoractiveObjectCreator = nullptr
 
QRecursiveMutex imageProviderMutex
 
QHash< QString, QSharedPointer< QQmlImageProviderBase > > imageProviders
 
QList< QQmlAbstractUrlInterceptor * > urlInterceptors
 
int scarceResourcesRefCount = 0
 
QQmlImportDatabase importDatabase
 
QQmlTypeLoader typeLoader
 
QString offlineStoragePath
 
QIntrusiveList< Incubator, &Incubator::nextincubatorList
 
unsigned int incubatorCount = 0
 
QQmlIncubationControllerincubationController = nullptr
 
QMutex networkAccessManagerMutex
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

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

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 100 of file qqmlengine_p.h.

Constructor & Destructor Documentation

◆ QQmlEnginePrivate()

QQmlEnginePrivate::QQmlEnginePrivate ( QQmlEngine * q)
inlineexplicit

Definition at line 104 of file qqmlengine_p.h.

◆ ~QQmlEnginePrivate()

QQmlEnginePrivate::~QQmlEnginePrivate ( )
override

Definition at line 200 of file qqmlengine.cpp.

References QQmlMetaType::freeUnusedTypesAndCaches(), incubationController, inProgressCreations, profiler, qDeleteAll(), and qWarning.

+ Here is the call graph for this function:

Member Function Documentation

◆ activateDesignerMode()

void QQmlEnginePrivate::activateDesignerMode ( )
static

Definition at line 131 of file qqmlengine.cpp.

Referenced by QQuickDesignerSupport::activateDesignerMode().

+ Here is the caller graph for this function:

◆ compilationUnitFromUrl()

QV4::ExecutableCompilationUnit * QQmlEnginePrivate::compilationUnitFromUrl ( const QUrl & url)

Definition at line 1961 of file qqmlengine.cpp.

References QV4::ExecutionEngine::compilationUnitForUrl(), QV4::ExecutionEngine::executableCompilationUnit(), and url.

+ Here is the call graph for this function:

◆ createInternalContext()

QQmlRefPointer< QQmlContextData > QQmlEnginePrivate::createInternalContext ( const QQmlRefPointer< QV4::ExecutableCompilationUnit > & unit,
const QQmlRefPointer< QQmlContextData > & parentContext,
int subComponentIndex,
bool isComponentRoot )

Definition at line 1980 of file qqmlengine.cpp.

References QV4::Scoped< T >::asReturnedValue(), QQmlData::context, QQmlContextData::createRefCounted(), i, QQmlContextData::initFromTypeCompilationUnit(), QV4::ExecutionEngine::newArrayObject(), QV4::Object::put(), Q_ASSERT, QQmlContextData::setImportedScripts(), QQmlContextData::setImports(), and QQmlContextData::setInternal().

+ Here is the call graph for this function:

◆ dereferenceScarceResources()

void QQmlEnginePrivate::dereferenceScarceResources ( )
inline

Definition at line 314 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().

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

◆ designerMode()

bool QQmlEnginePrivate::designerMode ( )
static

Definition at line 126 of file qqmlengine.cpp.

Referenced by QAbstractAnimationJob::start(), QQuickBoundaryRule::write(), and QQuickBehavior::write().

+ Here is the caller graph for this function:

◆ executeRuntimeFunction() [1/2]

void QQmlEnginePrivate::executeRuntimeFunction ( const QUrl & url,
qsizetype functionIndex,
QObject * thisObject,
int argc = 0,
void ** args = nullptr,
QMetaType * types = nullptr )

Definition at line 1902 of file qqmlengine.cpp.

References args, and url.

◆ executeRuntimeFunction() [2/2]

void QQmlEnginePrivate::executeRuntimeFunction ( const QV4::ExecutableCompilationUnit * unit,
qsizetype functionIndex,
QObject * thisObject,
int argc = 0,
void ** args = nullptr,
QMetaType * types = nullptr )

Definition at line 1912 of file qqmlengine.cpp.

References args, QV4::ExecutionEngine::callInContext(), QV4::QmlContext::create(), QQmlData::get(), Q_ASSERT, QV4::CompilationUnitRuntimeData::runtimeFunctions, and QV4::ExecutionEngine::scriptContext().

+ Here is the call graph for this function:

◆ get() [1/6]

const QQmlEnginePrivate * QQmlEnginePrivate::get ( const QQmlEngine * e)
inlinestatic

Definition at line 344 of file qqmlengine_p.h.

References Q_ASSERT.

◆ get() [2/6]

QQmlEnginePrivate * QQmlEnginePrivate::get ( const QQmlRefPointer< QQmlContextData > & c)
inlinestatic

Definition at line 366 of file qqmlengine_p.h.

References contextEngine().

+ Here is the call graph for this function:

◆ get() [3/6]

QQmlEnginePrivate * QQmlEnginePrivate::get ( QQmlContext * c)
inlinestatic

Definition at line 361 of file qqmlengine_p.h.

References contextEngine().

+ Here is the call graph for this function:

◆ get() [4/6]

QQmlEnginePrivate * QQmlEnginePrivate::get ( QQmlEngine * e)
inlinestatic

Definition at line 337 of file qqmlengine_p.h.

References Q_ASSERT.

Referenced by CapturePreventer::CapturePreventer(), 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(), QQmlBindPrivate::decodeBinding(), QQmlTypeData::done(), QQmlBinding::doUpdate(), QQmlIncubationController::engine(), QQmlProfilerServiceImpl::engineAboutToBeAdded(), enumForSingleton(), QQmlJavaScriptExpression::evalFunction(), QQmlBinding::evaluate(), QQmlBoundSignalExpression::evaluate(), QtObject::exit(), QQmlObjectCreator::finalize(), gc(), gcDone(), get(), QV4::QObjectWrapper::getProperty(), QV4::QQmlContextWrapper::getPropertyAndBase(), QQmlConnectionSlotDispatcher::impl(), QV4::QObjectSlotDispatcher::impl(), QQmlTypeLoader::importDatabase(), QQmlIncubatorPrivate::incubate(), QQmlComponentPrivate::incubateObject(), QQDMIncubationTask::initializeRequiredProperties(), QQmlPropertyPrivate::initProperty(), QQmlGadgetPtrWrapper::instance(), instanceOfQObject(), QQuickPixmap::load(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QQmlPrivate::AOTCompiledContext::loadContextIdLookup(), 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()(), QQmlComponentPrivate::prepareLoadFromModule(), QQmlPrivate::propertyCapture(), QQmlComponent::qmlAttachedProperties(), qmlAttachedPropertiesFunction(), qmlExecuteDeferred(), qmlsqldatabase_changeVersion(), qQmlTranslationPropertyBindingCreateBinding(), QtObject::quit(), QV4::ExecutionEngine::registerNativeModule(), 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().

◆ get() [5/6]

QQmlEngine * QQmlEnginePrivate::get ( QQmlEnginePrivate * p)
inlinestatic

Definition at line 371 of file qqmlengine_p.h.

References Q_ASSERT.

◆ get() [6/6]

QQmlEnginePrivate * QQmlEnginePrivate::get ( QV4::ExecutionEngine * e)
inlinestatic

Definition at line 378 of file qqmlengine_p.h.

References get(), QV4::ExecutionEngine::qmlEngine(), and qmlEngine().

+ Here is the call graph for this function:

◆ getV4Engine()

QV4::ExecutionEngine * QQmlEnginePrivate::getV4Engine ( QQmlEngine * e)
inlinestatic

Definition at line 330 of file qqmlengine_p.h.

References QJSEngine::handle(), and Q_ASSERT.

Referenced by QQuickSpinBoxPrivate::evaluateTextFromValue(), QQuickSpinBoxPrivate::evaluateValueFromText(), and QQuickStackElement::initialize().

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

◆ imageProvider()

QSharedPointer< QQmlImageProviderBase > QQmlEnginePrivate::imageProvider ( const QString & providerId) const

Definition at line 757 of file qqmlengine.cpp.

References imageProviderMutex, imageProviders, QString::toLower(), and QHash< Key, T >::value().

Referenced by createPixmapDataSync(), and QQuickPixmap::load().

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

◆ incubate()

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().

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

◆ init()

void QQmlEnginePrivate::init ( )

Definition at line 468 of file qqmlengine.cpp.

References baseModulesUninitialized, QQmlData::init(), qml_register_types_QML(), qmlProtectModule(), and rootContext.

+ Here is the call graph for this function:

◆ isScriptLoaded()

bool QQmlEnginePrivate::isScriptLoaded ( const QUrl & url) const

Definition at line 1897 of file qqmlengine.cpp.

References url.

◆ isTypeLoaded()

bool QQmlEnginePrivate::isTypeLoaded ( const QUrl & url) const

Definition at line 1892 of file qqmlengine.cpp.

References url.

◆ offlineStorageDatabaseDirectory()

QString QQmlEnginePrivate::offlineStorageDatabaseDirectory ( ) const

Definition at line 1819 of file qqmlengine.cpp.

References QDir::separator().

Referenced by qmlsqldatabase_changeVersion().

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

◆ Q_OBJECT_BINDABLE_PROPERTY()

QQmlEnginePrivate::Q_OBJECT_BINDABLE_PROPERTY ( QQmlEnginePrivate ,
QString ,
translationLanguage  )

◆ qmlErrorFromDiagnostics()

QList< QQmlError > QQmlEnginePrivate::qmlErrorFromDiagnostics ( const QString & fileName,
const QList< QQmlJS::DiagnosticMessage > & diagnosticMessages )
static

Definition at line 1582 of file qqmlengine.cpp.

References error, fileName, qPrintable, and qWarning.

Referenced by QQmlScriptBlob::dataReceived(), and QV4::Script::precompile().

+ Here is the caller graph for this function:

◆ referenceScarceResources()

void QQmlEnginePrivate::referenceScarceResources ( )
inline

Definition at line 305 of file qqmlengine_p.h.

References scarceResourcesRefCount.

Referenced by QQmlComponentPrivate::beginCreate(), QQmlBinding::evaluate(), QQmlBoundSignalExpression::evaluate(), QQmlIncubatorPrivate::incubate(), QQmlVMEMetaObject::metaCall(), and QQmlExpressionPrivate::value().

+ Here is the caller graph for this function:

◆ sendExit()

void QQmlEnginePrivate::sendExit ( int retCode = 0)

Definition at line 1493 of file qqmlengine.cpp.

References emit, qWarning, and SIGNAL.

◆ sendQuit()

void QQmlEnginePrivate::sendQuit ( )

Definition at line 1484 of file qqmlengine.cpp.

References emit, qWarning, and SIGNAL.

◆ setInternalContext()

static void QQmlEnginePrivate::setInternalContext ( QObject * This,
const QQmlRefPointer< QQmlContextData > & context,
QQmlContextData::QmlObjectKind kind )
inlinestatic

Definition at line 233 of file qqmlengine_p.h.

References context, QQmlData::get(), Q_ASSERT, and qmlEngine().

+ Here is the call graph for this function:

◆ singletonInstance() [1/3]

template<>
QJSValue QQmlEnginePrivate::singletonInstance ( const QQmlType & type)

Definition at line 1826 of file qqmlengine.cpp.

References arg, QString::asprintf(), component(), QQmlData::ensurePropertyCache(), error, QString::fromUtf8(), QQmlData::get(), QQmlContextData::get(), o, QQmlComponent::PreferSynchronous, Q_ASSERT, qPrintable, QtCriticalMsg, QJSValue::UndefinedValue, and warning().

+ Here is the call graph for this function:

◆ singletonInstance() [2/3]

template<typename T >
T QQmlEnginePrivate::singletonInstance ( const QQmlType & type)

◆ singletonInstance() [3/3]

template<>
Q_QML_EXPORT QJSValue QQmlEnginePrivate::singletonInstance ( const QQmlType & type)

◆ v4engine()

QV4::ExecutionEngine * QQmlEnginePrivate::v4engine ( ) const
inline

Definition at line 132 of file qqmlengine_p.h.

Referenced by QQmlTypeCompiler::compile(), dereferenceScarceResources(), and QQmlPropertyPrivate::write().

+ Here is the caller graph for this function:

◆ valueTypeInstance()

QQmlGadgetPtrWrapper * QQmlEnginePrivate::valueTypeInstance ( QMetaType type)
inline

Definition at line 207 of file qqmlengine_p.h.

References QSet< T >::cend(), QSet< T >::constFind(), it, and QQmlMetaType::valueType().

+ Here is the call graph for this function:

◆ warning() [1/6]

void QQmlEnginePrivate::warning ( const QList< QQmlError > & errors)

Definition at line 1542 of file qqmlengine.cpp.

References dumpwarning(), and emit.

+ Here is the call graph for this function:

◆ warning() [2/6]

void QQmlEnginePrivate::warning ( const QQmlError & error)

Definition at line 1534 of file qqmlengine.cpp.

References dumpwarning(), emit, and error.

Referenced by QQmlInfo::~QQmlInfo(), QQuickLoaderPrivate::_q_sourceLoaded(), QQmlIncubator::clear(), QQmlComponentPrivate::complete(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), QQmlJavaScriptExpression::createQmlBinding(), QQmlJavaScriptExpression::evalFunction(), QQuickWorkerScript::event(), QQmlApplicationEnginePrivate::finishLoad(), QV4::generateWarning(), QQmlIncubatorPrivate::incubate(), QQuickLoaderPrivate::incubatorStateChanged(), QQmlVMEMetaObject::metaCall(), and QV4::QmlIncubatorObject::statusChanged().

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

◆ warning() [3/6]

void QQmlEnginePrivate::warning ( QQmlEngine * engine,
const QList< QQmlError > & error )
static

Definition at line 1558 of file qqmlengine.cpp.

References dumpwarning(), engine, error, and get().

+ Here is the call graph for this function:

◆ warning() [4/6]

void QQmlEnginePrivate::warning ( QQmlEngine * engine,
const QQmlError & error )
static

Definition at line 1550 of file qqmlengine.cpp.

References dumpwarning(), engine, error, and get().

+ Here is the call graph for this function:

◆ warning() [5/6]

void QQmlEnginePrivate::warning ( QQmlEnginePrivate * engine,
const QList< QQmlError > & error )
static

Definition at line 1574 of file qqmlengine.cpp.

References dumpwarning(), engine, and error.

+ Here is the call graph for this function:

◆ warning() [6/6]

void QQmlEnginePrivate::warning ( QQmlEnginePrivate * engine,
const QQmlError & error )
static

Definition at line 1566 of file qqmlengine.cpp.

References dumpwarning(), engine, and error.

+ Here is the call graph for this function:

Member Data Documentation

◆ activeObjectCreator

QQmlObjectCreator* QQmlEnginePrivate::activeObjectCreator = nullptr

Definition at line 140 of file qqmlengine_p.h.

◆ baseModulesUninitialized

bool QQmlEnginePrivate::baseModulesUninitialized = true
static

Definition at line 110 of file qqmlengine_p.h.

Referenced by init(), and qmlClearTypeRegistrations().

◆ baseUrl

QUrl QQmlEnginePrivate::baseUrl

Definition at line 138 of file qqmlengine_p.h.

◆ erroredBindings

◆ imageProviderMutex

QRecursiveMutex QQmlEnginePrivate::imageProviderMutex
mutable

Definition at line 147 of file qqmlengine_p.h.

Referenced by imageProvider().

◆ imageProviders

QHash<QString,QSharedPointer<QQmlImageProviderBase> > QQmlEnginePrivate::imageProviders

Definition at line 148 of file qqmlengine_p.h.

Referenced by imageProvider().

◆ importDatabase

QQmlImportDatabase QQmlEnginePrivate::importDatabase

Definition at line 157 of file qqmlengine_p.h.

◆ incubationController

QQmlIncubationController* QQmlEnginePrivate::incubationController = nullptr

Definition at line 169 of file qqmlengine_p.h.

Referenced by ~QQmlEnginePrivate(), QQmlIncubatorPrivate::clear(), and incubate().

◆ incubatorCount

◆ incubatorList

◆ inProgressCreations

◆ jsExpressionGuardPool

QRecyclePool<QQmlJavaScriptExpressionGuard> QQmlEnginePrivate::jsExpressionGuardPool

Definition at line 114 of file qqmlengine_p.h.

◆ networkAccessManagerMutex

QMutex QQmlEnginePrivate::networkAccessManagerMutex
mutable

Definition at line 205 of file qqmlengine_p.h.

◆ offlineStoragePath

QString QQmlEnginePrivate::offlineStoragePath

Definition at line 160 of file qqmlengine_p.h.

Referenced by QQmlEngine::offlineStoragePath().

◆ outputWarningsToMsgLog

bool QQmlEnginePrivate::outputWarningsToMsgLog = true

Definition at line 126 of file qqmlengine_p.h.

◆ profiler

const quintptr QQmlEnginePrivate::profiler = 0
static

Definition at line 121 of file qqmlengine_p.h.

Referenced by ~QQmlEnginePrivate().

◆ propertyCapture

◆ qml_debugging_enabled

Q_CONSTINIT std::atomic< bool > QQmlEnginePrivate::qml_debugging_enabled {false}
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:

import QtQuick
Item {
QtObject {
id: attributes
property string name
property int size
property variant attributes
}
Text { text: attributes.name }
}

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 123 of file qqmlengine_p.h.

◆ qPropertyTriggerPool

QRecyclePool<TriggerList> QQmlEnginePrivate::qPropertyTriggerPool

Definition at line 115 of file qqmlengine_p.h.

◆ rootContext

QQmlContext* QQmlEnginePrivate::rootContext = nullptr

Definition at line 117 of file qqmlengine_p.h.

Referenced by init().

◆ scarceResourcesRefCount

int QQmlEnginePrivate::scarceResourcesRefCount = 0

Definition at line 153 of file qqmlengine_p.h.

Referenced by dereferenceScarceResources(), and referenceScarceResources().

◆ typeLoader

◆ urlInterceptors

QList<QQmlAbstractUrlInterceptor *> QQmlEnginePrivate::urlInterceptors

Definition at line 151 of file qqmlengine_p.h.


The documentation for this class was generated from the following files: