Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlType Class Reference

#include <qqmltype_p.h>

+ Collaboration diagram for QQmlType:

Classes

struct  SingletonInstanceInfo
 

Public Types

enum  RegistrationType {
  CppType = 0 , SingletonType = 1 , InterfaceType = 2 , CompositeType = 3 ,
  CompositeSingletonType = 4 , InlineComponentType = 5 , SequentialContainerType = 6 , AnyRegistrationType = 255
}
 
typedef QVariant(* CreateValueTypeFunc) (const QJSValue &)
 
typedef void(* CreateFunc) (void *, void *)
 
typedef QObject *(* ExtensionFunc) (QObject *)
 

Public Member Functions

 QQmlType ()
 
 QQmlType (const QQmlType &other)
 
 QQmlType (QQmlType &&other)
 
QQmlTypeoperator= (const QQmlType &other)
 
QQmlTypeoperator= (QQmlType &&other)
 
 QQmlType (const QQmlTypePrivate *priv)
 
 ~QQmlType ()
 
bool operator== (const QQmlType &other) const
 
bool isValid () const
 
QByteArray typeName () const
 
QString qmlTypeName () const
 
QString elementName () const
 
QHashedString module () const
 
QTypeRevision version () const
 
bool availableInVersion (QTypeRevision version) const
 
bool availableInVersion (const QHashedStringRef &module, QTypeRevision version) const
 
CreateValueTypeFunc createValueTypeFunction () const
 
bool canConstructValueType () const
 
bool canPopulateValueType () const
 
QObjectcreate () const
 
QObjectcreate (void **, size_t) const
 Like create without arguments, but allocates some extra space after the object.
 
QObjectcreateWithQQmlData () const
 
CreateFunc createFunction () const
 
QQmlCustomParsercustomParser () const
 
bool isCreatable () const
 
ExtensionFunc extensionFunction () const
 
const QMetaObjectextensionMetaObject () const
 
bool isExtendedType () const
 
QString noCreationReason () const
 
bool isSingleton () const
 
bool isInterface () const
 
bool isComposite () const
 
bool isCompositeSingleton () const
 
bool isQObjectSingleton () const
 
bool isQJSValueSingleton () const
 
bool isSequentialContainer () const
 
QMetaType typeId () const
 
QMetaType qListTypeId () const
 
QMetaSequence listMetaSequence () const
 
const QMetaObjectmetaObject () const
 
const QMetaObjectbaseMetaObject () const
 
QTypeRevision metaObjectRevision () const
 
bool containsRevisionedAttributes () const
 
QQmlAttachedPropertiesFunc attachedPropertiesFunction (QQmlEnginePrivate *engine) const
 
const QMetaObjectattachedPropertiesType (QQmlEnginePrivate *engine) const
 
int parserStatusCast () const
 
const char * interfaceIId () const
 
int propertyValueSourceCast () const
 
int propertyValueInterceptorCast () const
 
int finalizerCast () const
 
int index () const
 
bool isInlineComponentType () const
 
SingletonInstanceInfosingletonInstanceInfo () const
 
QUrl sourceUrl () const
 
int enumValue (QQmlEnginePrivate *engine, const QHashedStringRef &, bool *ok) const
 
int enumValue (QQmlEnginePrivate *engine, const QHashedCStringRef &, bool *ok) const
 
int enumValue (QQmlEnginePrivate *engine, const QV4::String *, bool *ok) const
 
int scopedEnumIndex (QQmlEnginePrivate *engine, const QV4::String *, bool *ok) const
 
int scopedEnumIndex (QQmlEnginePrivate *engine, const QString &, bool *ok) const
 
int scopedEnumValue (QQmlEnginePrivate *engine, int index, const QV4::String *, bool *ok) const
 
int scopedEnumValue (QQmlEnginePrivate *engine, int index, const QString &, bool *ok) const
 
int scopedEnumValue (QQmlEnginePrivate *engine, const QByteArray &, const QByteArray &, bool *ok) const
 
int scopedEnumValue (QQmlEnginePrivate *engine, QStringView, QStringView, bool *ok) const
 
const QQmlTypePrivatepriv () const
 
void createProxy (QObject *instance) const
 

Static Public Member Functions

static void refHandle (const QQmlTypePrivate *priv)
 
static void derefHandle (const QQmlTypePrivate *priv)
 
static int refCount (const QQmlTypePrivate *priv)
 

Friends

class QQmlTypePrivate
 
size_t qHash (const QQmlType &t, size_t seed)
 

Detailed Description

Definition at line 43 of file qqmltype_p.h.

Member Typedef Documentation

◆ CreateFunc

typedef void(* QQmlType::CreateFunc) (void *, void *)

Definition at line 80 of file qqmltype_p.h.

◆ CreateValueTypeFunc

typedef QVariant(* QQmlType::CreateValueTypeFunc) (const QJSValue &)

Definition at line 70 of file qqmltype_p.h.

◆ ExtensionFunc

typedef QObject *(* QQmlType::ExtensionFunc) (QObject *)

Definition at line 86 of file qqmltype_p.h.

Member Enumeration Documentation

◆ RegistrationType

Enumerator
CppType 
SingletonType 
InterfaceType 
CompositeType 
CompositeSingletonType 
InlineComponentType 
SequentialContainerType 
AnyRegistrationType 

Definition at line 150 of file qqmltype_p.h.

Constructor & Destructor Documentation

◆ QQmlType() [1/4]

QQmlType::QQmlType ( )
default

◆ QQmlType() [2/4]

QQmlType::QQmlType ( const QQmlType other)
default

◆ QQmlType() [3/4]

QQmlType::QQmlType ( QQmlType &&  other)
default

◆ QQmlType() [4/4]

QQmlType::QQmlType ( const QQmlTypePrivate priv)
explicit

Definition at line 102 of file qqmltype.cpp.

◆ ~QQmlType()

QQmlType::~QQmlType ( )
default

Member Function Documentation

◆ attachedPropertiesFunction()

QQmlAttachedPropertiesFunc QQmlType::attachedPropertiesFunction ( QQmlEnginePrivate engine) const

Definition at line 685 of file qqmltype.cpp.

References QQmlTypePrivate::attachedPropertiesBase(), base, and engine.

+ Here is the call graph for this function:

◆ attachedPropertiesType()

const QMetaObject * QQmlType::attachedPropertiesType ( QQmlEnginePrivate engine) const

Definition at line 692 of file qqmltype.cpp.

References QQmlTypePrivate::attachedPropertiesBase(), base, and engine.

Referenced by QQmlPropertyCacheCreator< ObjectContainer >::propertyCacheForObject().

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

◆ availableInVersion() [1/2]

bool QQmlType::availableInVersion ( const QHashedStringRef module,
QTypeRevision  version 
) const

Definition at line 133 of file qqmltype.cpp.

References availableInVersion(), module(), QQmlTypePrivate::module, and version().

+ Here is the call graph for this function:

◆ availableInVersion() [2/2]

bool QQmlType::availableInVersion ( QTypeRevision  version) const

Definition at line 119 of file qqmltype.cpp.

References QTypeRevision::hasMajorVersion(), QTypeRevision::hasMinorVersion(), QTypeRevision::majorVersion(), QTypeRevision::minorVersion(), version(), and QQmlTypePrivate::version.

Referenced by availableInVersion().

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

◆ baseMetaObject()

const QMetaObject * QQmlType::baseMetaObject ( ) const

Definition at line 670 of file qqmltype.cpp.

References QQmlTypePrivate::baseMetaObject.

◆ canConstructValueType()

bool QQmlType::canConstructValueType ( ) const

Definition at line 536 of file qqmltype.cpp.

References QQmlTypePrivate::QQmlCppTypeData::constructValueType, CppType, QQmlTypePrivate::extraData::cppTypeData, QQmlTypePrivate::extraData, and QQmlTypePrivate::regType.

Referenced by createOrConstructValueType(), and createOrConstructValueType().

+ Here is the caller graph for this function:

◆ canPopulateValueType()

bool QQmlType::canPopulateValueType ( ) const

Definition at line 543 of file qqmltype.cpp.

References CppType, QQmlTypePrivate::extraData::cppTypeData, QQmlTypePrivate::extraData, QQmlTypePrivate::QQmlCppTypeData::populateValueType, and QQmlTypePrivate::regType.

Referenced by createOrConstructValueType(), and createOrConstructValueType().

+ Here is the caller graph for this function:

◆ containsRevisionedAttributes()

bool QQmlType::containsRevisionedAttributes ( ) const

Definition at line 675 of file qqmltype.cpp.

References QQmlTypePrivate::ProxyMetaObjects::containsRevisionedAttributes, and QQmlTypePrivate::init().

+ Here is the call graph for this function:

◆ create() [1/2]

QObject * QQmlType::create ( ) const

Allocates and initializes an object if the type is creatable. Returns a pointer to the object, or nullptr if the type was not creatable.

Definition at line 462 of file qqmltype.cpp.

References create().

Referenced by create(), and createWithQQmlData().

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

◆ create() [2/2]

QObject * QQmlType::create ( void **  memory,
size_t  additionalMemory 
) const

Like create without arguments, but allocates some extra space after the object.

Parameters
memoryAn out-only argument. *memory will point to the start of the additionally allocated memory.
additionalMemoryThe amount of extra memory in bytes that shoudld be allocated.
Note
This function is used to allocate the QQmlData next to the object in the QQmlObjectCreator.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 480 of file qqmltype.cpp.

References QQmlTypePrivate::QQmlCppTypeData::allocationSize, QQmlTypePrivate::extraData::cppTypeData, createProxy(), QQmlTypePrivate::extraData, isCreatable(), QQmlTypePrivate::QQmlCppTypeData::newFunc, and QQmlTypePrivate::QQmlCppTypeData::userdata.

+ Here is the call graph for this function:

◆ createFunction()

◆ createProxy()

void QQmlType::createProxy ( QObject instance) const

Definition at line 913 of file qqmltype.cpp.

References QQmlTypePrivate::ProxyMetaObjects::data, QQmlTypePrivate::init(), QList< T >::isEmpty(), and void.

Referenced by create(), and qmltcCreateDynamicMetaObject().

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

◆ createValueTypeFunction()

QQmlType::CreateValueTypeFunc QQmlType::createValueTypeFunction ( ) const

Definition at line 529 of file qqmltype.cpp.

References CppType, QQmlTypePrivate::extraData::cppTypeData, QQmlTypePrivate::QQmlCppTypeData::createValueTypeFunc, QQmlTypePrivate::extraData, and QQmlTypePrivate::regType.

Referenced by createOrConstructValueType().

+ Here is the caller graph for this function:

◆ createWithQQmlData()

QObject * QQmlType::createWithQQmlData ( ) const

Like create, but also allocates memory behind the object, constructs a QQmlData there and lets the objects declarativeData point to the newly created QQmlData.

Definition at line 498 of file qqmltype.cpp.

References create(), QQmlData::DoesNotOwnMemory, QObjectPrivate::get(), and Q_ASSERT.

Referenced by QQmlComponentPrivate::beginCreate().

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

◆ customParser()

◆ derefHandle()

void QQmlType::derefHandle ( const QQmlTypePrivate priv)
static

Definition at line 900 of file qqmltype.cpp.

References priv(), and QQmlRefCounted< T >::release().

Referenced by QV4::Heap::QQmlTypeWrapper::destroy(), QV4::Heap::QQmlScopedEnumWrapper::destroy(), and QV4::QQmlTypeWrapper::lookupScopedEnum().

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

◆ elementName()

QString QQmlType::elementName ( ) const

Definition at line 442 of file qqmltype.cpp.

References QQmlTypePrivate::elementName.

Referenced by QV4::Function::Function(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), findCompositeSingletons(), and QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter().

+ Here is the caller graph for this function:

◆ enumValue() [1/3]

int QQmlType::enumValue ( QQmlEnginePrivate engine,
const QHashedCStringRef name,
bool *  ok 
) const

Definition at line 762 of file qqmltype.cpp.

References engine, QQmlTypePrivate::Enums::enums, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ enumValue() [2/3]

int QQmlType::enumValue ( QQmlEnginePrivate engine,
const QHashedStringRef name,
bool *  ok 
) const

Definition at line 748 of file qqmltype.cpp.

References engine, QQmlTypePrivate::Enums::enums, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ enumValue() [3/3]

int QQmlType::enumValue ( QQmlEnginePrivate engine,
const QV4::String name,
bool *  ok 
) const

Definition at line 776 of file qqmltype.cpp.

References engine, QQmlTypePrivate::Enums::enums, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ extensionFunction()

◆ extensionMetaObject()

const QMetaObject * QQmlType::extensionMetaObject ( ) const

◆ finalizerCast()

◆ index()

int QQmlType::index ( ) const

Definition at line 734 of file qqmltype.cpp.

References QQmlTypePrivate::index.

Referenced by QQmlPrivate::qmlregister(), and QQmlMetaType::typeId().

+ Here is the caller graph for this function:

◆ interfaceIId()

const char * QQmlType::interfaceIId ( ) const

◆ isComposite()

bool QQmlType::isComposite ( ) const

Definition at line 614 of file qqmltype.cpp.

References QQmlTypePrivate::isComposite().

Referenced by QV4::Function::Function(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter(), and QQmlImports::resolveType().

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

◆ isCompositeSingleton()

bool QQmlType::isCompositeSingleton ( ) const

Definition at line 619 of file qqmltype.cpp.

References CompositeSingletonType, isInlineComponentType(), and QQmlTypePrivate::regType.

Referenced by QQmlImports::resolveType().

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

◆ isCreatable()

bool QQmlType::isCreatable ( ) const

Definition at line 564 of file qqmltype.cpp.

References CppType, QQmlTypePrivate::extraData::cppTypeData, QQmlTypePrivate::extraData, QQmlTypePrivate::QQmlCppTypeData::newFunc, and QQmlTypePrivate::regType.

Referenced by create().

+ Here is the caller graph for this function:

◆ isExtendedType()

bool QQmlType::isExtendedType ( ) const

Definition at line 599 of file qqmltype.cpp.

References QQmlTypePrivate::ProxyMetaObjects::data, QQmlTypePrivate::init(), and QList< T >::isEmpty().

+ Here is the call graph for this function:

◆ isInlineComponentType()

bool QQmlType::isInlineComponentType ( ) const

Definition at line 739 of file qqmltype.cpp.

References InlineComponentType, and QQmlTypePrivate::regType.

Referenced by QV4::Function::Function(), QV4::ResolvedTypeReference::addToHash(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), isCompositeSingleton(), QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter(), and QQmlImports::resolveType().

+ Here is the caller graph for this function:

◆ isInterface()

bool QQmlType::isInterface ( ) const

Definition at line 609 of file qqmltype.cpp.

References InterfaceType, and QQmlTypePrivate::regType.

◆ isQJSValueSingleton()

◆ isQObjectSingleton()

◆ isSequentialContainer()

bool QQmlType::isSequentialContainer ( ) const

Definition at line 638 of file qqmltype.cpp.

References QQmlTypePrivate::regType, and SequentialContainerType.

Referenced by QV4::coerceListType(), QV4::ExecutionEngine::fromData(), QV4::SequencePrototype::fromVariant(), listMetaSequence(), QV4::loadProperty(), QQmlVMEMetaObject::metaCall(), and QV4::Heap::Sequence::setVariant().

+ Here is the caller graph for this function:

◆ isSingleton()

bool QQmlType::isSingleton ( ) const

Definition at line 604 of file qqmltype.cpp.

References CompositeSingletonType, QQmlTypePrivate::regType, and SingletonType.

◆ isValid()

◆ listMetaSequence()

QMetaSequence QQmlType::listMetaSequence ( ) const

Definition at line 653 of file qqmltype.cpp.

References QQmlTypePrivate::extraData, isSequentialContainer(), and QQmlTypePrivate::extraData::sequentialContainerTypeData.

Referenced by QV4::coerceListType(), QV4::ExecutionEngine::fromData(), QV4::SequencePrototype::fromVariant(), QV4::loadProperty(), and QV4::Heap::Sequence::setVariant().

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

◆ metaObject()

const QMetaObject * QQmlType::metaObject ( ) const

Definition at line 658 of file qqmltype.cpp.

References QQmlTypePrivate::baseMetaObject, QList< T >::constFirst(), QQmlTypePrivate::ProxyMetaObjects::data, QQmlTypePrivate::init(), QList< T >::isEmpty(), and QQmlProxyMetaObject::ProxyData::metaObject.

Referenced by QV4::ResolvedTypeReference::createPropertyCache(), QV4::ResolvedTypeReference::doDynamicTypeCheck(), QQmlMetaType::metaObjectForType(), QQmlMetaType::metaObjectForValueType(), and QQmlCustomParser::resolveType().

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

◆ metaObjectRevision()

QTypeRevision QQmlType::metaObjectRevision ( ) const

Definition at line 680 of file qqmltype.cpp.

References QQmlTypePrivate::revision.

Referenced by QQmlMetaTypeData::propertyCache().

+ Here is the caller graph for this function:

◆ module()

QHashedString QQmlType::module ( ) const

Definition at line 105 of file qqmltype.cpp.

References QQmlTypePrivate::module.

Referenced by QV4::ResolvedTypeReference::addToHash(), and availableInVersion().

+ Here is the caller graph for this function:

◆ noCreationReason()

◆ operator=() [1/2]

QQmlType & QQmlType::operator= ( const QQmlType other)
default

◆ operator=() [2/2]

QQmlType & QQmlType::operator= ( QQmlType &&  other)
default

◆ operator==()

bool QQmlType::operator== ( const QQmlType other) const
inline

Definition at line 54 of file qqmltype_p.h.

References d, and other().

+ Here is the call graph for this function:

◆ parserStatusCast()

◆ priv()

const QQmlTypePrivate * QQmlType::priv ( ) const
inline

Definition at line 145 of file qqmltype_p.h.

References d.

Referenced by derefHandle(), refCount(), and refHandle().

+ Here is the caller graph for this function:

◆ propertyValueInterceptorCast()

◆ propertyValueSourceCast()

◆ qListTypeId()

QMetaType QQmlType::qListTypeId ( ) const

Definition at line 648 of file qqmltype.cpp.

References QQmlTypePrivate::listId.

Referenced by QV4::coerceListType(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter(), and QV4::Heap::Sequence::setVariant().

+ Here is the caller graph for this function:

◆ qmlTypeName()

QString QQmlType::qmlTypeName ( ) const

Definition at line 449 of file qqmltype.cpp.

References QQmlTypePrivate::name.

Referenced by QQuickDesignerSupportMetaInfo::isSubclassOf(), and QQmlDebugTranslationServicePrivate::sendTranslatableTextOccurrences().

+ Here is the caller graph for this function:

◆ refCount()

int QQmlType::refCount ( const QQmlTypePrivate priv)
static

Definition at line 906 of file qqmltype.cpp.

References QQmlRefCount::count(), and priv().

+ Here is the call graph for this function:

◆ refHandle()

void QQmlType::refHandle ( const QQmlTypePrivate priv)
static

Definition at line 894 of file qqmltype.cpp.

References QQmlRefCount::addref(), and priv().

Referenced by QV4::QQmlTypeWrapper::create(), QV4::QQmlTypeWrapper::virtualGet(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

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

◆ scopedEnumIndex() [1/2]

int QQmlType::scopedEnumIndex ( QQmlEnginePrivate engine,
const QString name,
bool *  ok 
) const

Definition at line 804 of file qqmltype.cpp.

References engine, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnumIndex, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ scopedEnumIndex() [2/2]

int QQmlType::scopedEnumIndex ( QQmlEnginePrivate engine,
const QV4::String name,
bool *  ok 
) const

Definition at line 790 of file qqmltype.cpp.

References engine, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnumIndex, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ scopedEnumValue() [1/4]

int QQmlType::scopedEnumValue ( QQmlEnginePrivate engine,
const QByteArray scopedEnumName,
const QByteArray name,
bool *  ok 
) const

Definition at line 850 of file qqmltype.cpp.

References QList< T >::at(), QByteArray::constData(), engine, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnumIndex, QQmlTypePrivate::Enums::scopedEnums, QByteArray::size(), and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ scopedEnumValue() [2/4]

int QQmlType::scopedEnumValue ( QQmlEnginePrivate engine,
int  index,
const QString name,
bool *  ok 
) const

Definition at line 834 of file qqmltype.cpp.

References QList< T >::at(), engine, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnums, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ scopedEnumValue() [3/4]

int QQmlType::scopedEnumValue ( QQmlEnginePrivate engine,
int  index,
const QV4::String name,
bool *  ok 
) const

Definition at line 818 of file qqmltype.cpp.

References QList< T >::at(), engine, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnums, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ scopedEnumValue() [4/4]

int QQmlType::scopedEnumValue ( QQmlEnginePrivate engine,
QStringView  scopedEnumName,
QStringView  name,
bool *  ok 
) const

Definition at line 873 of file qqmltype.cpp.

References QList< T >::at(), engine, QQmlTypePrivate::initEnums(), ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnumIndex, QQmlTypePrivate::Enums::scopedEnums, and QStringHash< T >::value().

+ Here is the call graph for this function:

◆ singletonInstanceInfo()

◆ sourceUrl()

QUrl QQmlType::sourceUrl ( ) const

Definition at line 743 of file qqmltype.cpp.

References QQmlTypePrivate::sourceUrl().

Referenced by QV4::Function::Function(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), QQmlPrivate::AOTCompiledContext::loadTypeLookup(), QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter(), QQmlMetaType::removeFromInlineComponents(), and QQmlImports::resolveType().

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

◆ typeId()

◆ typeName()

QByteArray QQmlType::typeName ( ) const

Definition at line 431 of file qqmltype.cpp.

References QQmlTypePrivate::baseMetaObject, QMetaObject::className(), CompositeSingletonType, QQmlTypePrivate::extraData, QQmlTypePrivate::regType, QQmlTypePrivate::QQmlSingletonTypeData::singletonInstanceInfo, SingletonType, QQmlTypePrivate::extraData::singletonTypeData, QString::toUtf8(), and QQmlType::SingletonInstanceInfo::typeName.

Referenced by QQmlImports::resolveType(), and QQmlDebugTranslationServicePrivate::sendTranslatableTextOccurrences().

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

◆ version()

QTypeRevision QQmlType::version ( ) const

Definition at line 112 of file qqmltype.cpp.

References QQmlTypePrivate::version.

Referenced by availableInVersion(), availableInVersion(), QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject(), and findCompositeSingletons().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ qHash

size_t qHash ( const QQmlType t,
size_t  seed = 0 
)
friend

Definition at line 169 of file qqmltype_p.h.

◆ QQmlTypePrivate

friend class QQmlTypePrivate
friend

Definition at line 164 of file qqmltype_p.h.


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