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

#include <qqmlapplicationengine_p.h>

+ Inheritance diagram for QQmlApplicationEnginePrivate:
+ Collaboration diagram for QQmlApplicationEnginePrivate:

Public Member Functions

 QQmlApplicationEnginePrivate (QQmlEngine *e)
 
 ~QQmlApplicationEnginePrivate ()
 
void ensureInitialized ()
 
void init ()
 
void cleanUp ()
 
void startLoad (const QUrl &url, const QByteArray &data=QByteArray(), bool dataFlag=false)
 
void startLoad (QAnyStringView uri, QAnyStringView type)
 
void _q_loadTranslations ()
 
void finishLoad (QQmlComponent *component)
 
void ensureLoadingFinishes (QQmlComponent *component)
 
- Public Member Functions inherited from QQmlEnginePrivate
 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
 

Public Attributes

QList< QObject * > objects
 
QVariantMap initialProperties
 
QStringList extraFileSelectors
 
QString translationsDirectory
 
bool isInitialized = false
 
- Public Attributes inherited from QQmlEnginePrivate
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
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QQmlEnginePrivate
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)
 
- Static Public Attributes inherited from QQmlEnginePrivate
static bool baseModulesUninitialized = true
 
static const quintptr profiler = 0
 
static std::atomic< bool > qml_debugging_enabled {false}
 \qmltype QtObject \instantiates QObject \inqmlmodule QtQml
 

Detailed Description

Definition at line 27 of file qqmlapplicationengine_p.h.

Constructor & Destructor Documentation

◆ QQmlApplicationEnginePrivate()

QT_BEGIN_NAMESPACE QQmlApplicationEnginePrivate::QQmlApplicationEnginePrivate ( QQmlEngine * e)

Definition at line 16 of file qqmlapplicationengine.cpp.

References QLocale::bcp47Name().

+ Here is the call graph for this function:

◆ ~QQmlApplicationEnginePrivate()

QQmlApplicationEnginePrivate::~QQmlApplicationEnginePrivate ( )

Definition at line 22 of file qqmlapplicationengine.cpp.

Member Function Documentation

◆ _q_loadTranslations()

void QQmlApplicationEnginePrivate::_q_loadTranslations ( )

Definition at line 65 of file qqmlapplicationengine.cpp.

References QCoreApplication::installTranslator(), QString::isEmpty(), QCoreApplication::removeTranslator(), and translationsDirectory.

Referenced by init(), startLoad(), and startLoad().

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

◆ cleanUp()

void QQmlApplicationEnginePrivate::cleanUp ( )

Definition at line 34 of file qqmlapplicationengine.cpp.

References objects, and qDeleteAll().

+ Here is the call graph for this function:

◆ ensureInitialized()

void QQmlApplicationEnginePrivate::ensureInitialized ( )

Definition at line 26 of file qqmlapplicationengine.cpp.

References init(), and isInitialized.

Referenced by startLoad(), and startLoad().

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

◆ ensureLoadingFinishes()

void QQmlApplicationEnginePrivate::ensureLoadingFinishes ( QQmlComponent * component)

Definition at line 179 of file qqmlapplicationengine.cpp.

References QObject::connect(), finishLoad(), and QQmlComponent::statusChanged().

Referenced by startLoad(), and startLoad().

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

◆ finishLoad()

void QQmlApplicationEnginePrivate::finishLoad ( QQmlComponent * component)

Definition at line 145 of file qqmlapplicationengine.cpp.

References QObject::connect(), QList< T >::constLast(), QObject::destroyed(), QMap< Key, T >::empty(), QQmlComponent::Error, initialProperties, QQmlComponent::Loading, QQmlComponent::Null, objects, qWarning, QQmlComponent::Ready, QList< T >::removeAll(), and QQmlEnginePrivate::warning().

Referenced by ensureLoadingFinishes().

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

◆ init()

void QQmlApplicationEnginePrivate::init ( )

Definition at line 43 of file qqmlapplicationengine.cpp.

References _q_loadTranslations(), QObject::connect(), QQmlEngine::exit(), QCoreApplication::exit(), extraFileSelectors, QCoreApplication::installTranslator(), QCoreApplication::instance(), QLibraryInfo::path(), Qt::QueuedConnection, QCoreApplication::quit(), QQmlEngine::quit(), selector, QFileSelector::setExtraSelectors(), QLibraryInfo::TranslationsPath, and QJSEngine::uiLanguageChanged().

Referenced by ensureInitialized().

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

◆ startLoad() [1/2]

void QQmlApplicationEnginePrivate::startLoad ( const QUrl & url,
const QByteArray & data = QByteArray(),
bool dataFlag = false )

Definition at line 88 of file qqmlapplicationengine.cpp.

References _q_loadTranslations(), QString::clear(), ensureInitialized(), ensureLoadingFinishes(), QUrl::scheme(), translationsDirectory, url, and QQmlFile::urlToLocalFileOrQrc().

+ Here is the call graph for this function:

◆ startLoad() [2/2]

void QQmlApplicationEnginePrivate::startLoad ( QAnyStringView uri,
QAnyStringView type )

Definition at line 112 of file qqmlapplicationengine.cpp.

References _q_loadTranslations(), QString::clear(), ensureInitialized(), ensureLoadingFinishes(), QQmlComponentPrivate::get(), QQmlTypeLoader::getQmldir(), QUrl::scheme(), translationsDirectory, QQmlEnginePrivate::typeLoader, typeName, url, and QQmlFile::urlToLocalFileOrQrc().

+ Here is the call graph for this function:

Member Data Documentation

◆ extraFileSelectors

QStringList QQmlApplicationEnginePrivate::extraFileSelectors

Definition at line 44 of file qqmlapplicationengine_p.h.

Referenced by init().

◆ initialProperties

QVariantMap QQmlApplicationEnginePrivate::initialProperties

Definition at line 43 of file qqmlapplicationengine_p.h.

Referenced by finishLoad().

◆ isInitialized

bool QQmlApplicationEnginePrivate::isInitialized = false

Definition at line 49 of file qqmlapplicationengine_p.h.

Referenced by ensureInitialized().

◆ objects

QList<QObject *> QQmlApplicationEnginePrivate::objects

Definition at line 42 of file qqmlapplicationengine_p.h.

Referenced by cleanUp(), and finishLoad().

◆ translationsDirectory

QString QQmlApplicationEnginePrivate::translationsDirectory

Definition at line 45 of file qqmlapplicationengine_p.h.

Referenced by _q_loadTranslations(), startLoad(), and startLoad().


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