Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlMetaType Class Reference

#include <qqmlmetatype_p.h>

Collaboration diagram for QQmlMetaType:

Public Types

enum class  RegistrationResult { Success , Failure , NoRegistrationFunction }
enum  CompositeTypeLookupMode { NonSingleton , Singleton , JavaScript }
enum class  CachedUnitLookupError { NoError , NoUnitFound , VersionMismatch , NotFullyTyped }
enum  CacheMode { RejectAll , AcceptUntyped , RequireFullyTyped }
enum  ClonePolicy { CloneAll , CloneEnumsOnly }

Static Public Member Functions

static QUrl inlineComponentUrl (const QUrl &baseUrl, const QString &name)
static bool equalBaseUrls (const QUrl &aUrl, const QUrl &bUrl)
static QUrl normalizedUrl (const QUrl &unNormalizedUrl)
static QQmlType findCompositeType (const QUrl &url, const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit, CompositeTypeLookupMode mode=NonSingleton)
static QQmlType findInlineComponentType (const QUrl &url, const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit)
static QQmlType findInlineComponentType (const QUrl &baseUrl, const QString &name, const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit)
static QQmlType registerType (const QQmlPrivate::RegisterType &type)
static QQmlType registerInterface (const QQmlPrivate::RegisterInterface &type)
static QQmlType registerSingletonType (const QQmlPrivate::RegisterSingletonType &type, const QQmlType::SingletonInstanceInfo::ConstPtr &siinfo)
static QQmlType registerCompositeSingletonType (const QQmlPrivate::RegisterCompositeSingletonType &type, const QQmlType::SingletonInstanceInfo::ConstPtr &siinfo)
static QQmlType registerCompositeType (const QQmlPrivate::RegisterCompositeType &type)
static RegistrationResult registerPluginTypes (QObject *instance, const QString &basePath, const QString &uri, const QString &typeNamespace, QTypeRevision version, QList< QQmlError > *errors)
static QQmlType typeForUrl (const QUrl &url, const QHashedStringRef &typeName, CompositeTypeLookupMode mode, QList< QQmlError > *errors, QTypeRevision version=QTypeRevision())
static QQmlType fetchOrCreateInlineComponentTypeForUrl (const QUrl &url)
static QQmlType inlineComponentType (const QQmlType &outerType, const QString &name)
static void unregisterType (int type)
static void registerMetaObjectForType (const QMetaObject *metaobject, QQmlTypePrivate *type)
static void registerModule (const char *uri, QTypeRevision version)
static bool protectModule (const QString &uri, QTypeRevision version, bool weakProtectAllVersions=false)
static void registerModuleImport (const QString &uri, QTypeRevision version, const QQmlDirParser::Import &import)
static void unregisterModuleImport (const QString &uri, QTypeRevision version, const QQmlDirParser::Import &import)
static QList< QQmlDirParser::ImportmoduleImports (const QString &uri, QTypeRevision version)
static int typeId (const char *uri, QTypeRevision version, const char *qmlName)
static void registerUndeletableType (const QQmlType &dtype)
static QList< QStringqmlTypeNames ()
 Returns the list of registered QML type names.
static QList< QQmlTypeqmlTypes ()
 Returns the list of registered QML types.
static QList< QQmlTypeqmlSingletonTypes ()
 Returns the list of registered QML singleton types.
static QList< QQmlTypeqmlAllTypes ()
 Returns the list of all registered types.
static QQmlType qmlType (const QString &qualifiedName, QTypeRevision version)
 Returns the type (if any) of URI-qualified named qualifiedName and version specified by version_major and version_minor.
static QQmlType qmlType (const QHashedStringRef &name, const QHashedStringRef &module, QTypeRevision version)
static QQmlType qmlType (const QMetaObject *)
 Returns the type (if any) that corresponds to the metaObject.
static QQmlType qmlType (const QMetaObject *metaObject, const QHashedStringRef &module, QTypeRevision version)
 Returns the type (if any) that corresponds to the metaObject in version specified by version_major and version_minor in module specified by uri.
static QQmlType qmlTypeById (int qmlTypeId)
 Returns the type (if any) that corresponds to qmlTypeId.
static QQmlType qmlType (QMetaType metaType)
 Returns the type (if any) that corresponds to metaType.
static QQmlType qmlListType (QMetaType metaType)
static QQmlType qmlType (const QUrl &unNormalizedUrl)
 Returns the type (if any) that corresponds to the given url in the set of composite types added through file imports.
static QQmlPropertyCache::ConstPtr propertyCache (QObject *object, QTypeRevision version=QTypeRevision())
 Returns a QQmlPropertyCache for obj if one is available.
static QQmlPropertyCache::ConstPtr propertyCache (const QMetaObject *metaObject, QTypeRevision version=QTypeRevision())
static QQmlPropertyCache::ConstPtr propertyCache (const QQmlType &type, QTypeRevision version)
static QQmlMetaObject rawMetaObjectForType (QMetaType metaType)
static QQmlMetaObject metaObjectForType (QMetaType metaType)
static QQmlPropertyCache::ConstPtr propertyCacheForType (QMetaType metaType)
static QQmlPropertyCache::ConstPtr rawPropertyCacheForType (QMetaType metaType)
static QQmlPropertyCache::ConstPtr rawPropertyCacheForType (QMetaType metaType, QTypeRevision version)
static void freeUnusedTypesAndCaches ()
static QMetaProperty defaultProperty (const QMetaObject *)
static QMetaProperty defaultProperty (QObject *)
static QMetaMethod defaultMethod (const QMetaObject *)
static QMetaMethod defaultMethod (QObject *)
static QObjecttoQObject (const QVariant &, bool *ok=nullptr)
static QMetaType listValueType (QMetaType type)
static QQmlAttachedPropertiesFunc attachedPropertiesFunc (QQmlTypeLoader *typeLoader, const QMetaObject *)
static bool isInterface (QMetaType type)
 See qmlRegisterInterface() for information about when this will return true.
static const char * interfaceIId (QMetaType type)
static bool isList (QMetaType type)
static QTypeRevision latestModuleVersion (const QString &uri)
static bool isStronglyLockedModule (const QString &uri, QTypeRevision version)
static QTypeRevision matchingModuleVersion (const QString &module, QTypeRevision version)
static QQmlTypeModuletypeModule (const QString &uri, QTypeRevision version)
static QList< QQmlPrivate::AutoParentFunctionparentFunctions ()
static const QQmlPrivate::CachedQmlUnitfindCachedCompilationUnit (const QUrl &uri, CacheMode mode, CachedUnitLookupError *status)
static void prependCachedUnitLookupFunction (QQmlPrivate::QmlUnitCacheLookupFunction handler)
static void removeCachedUnitLookupFunction (QQmlPrivate::QmlUnitCacheLookupFunction handler)
static QString prettyTypeName (const QObject *object)
 Returns the pretty QML type name (e.g.
template<typename QQmlTypeContainer>
static void removeQQmlTypePrivate (QQmlTypeContainer &container, const QQmlTypePrivate *reference)
template<typename InlineComponentContainer>
static void removeFromInlineComponents (InlineComponentContainer &container, const QQmlTypePrivate *reference)
static void registerTypeAlias (int typeId, const QString &name)
static int registerAutoParentFunction (const QQmlPrivate::RegisterAutoParent &autoparent)
static void unregisterAutoParentFunction (const QQmlPrivate::AutoParentFunction &function)
static QQmlType registerSequentialContainer (const QQmlPrivate::RegisterSequentialContainer &sequenceRegistration)
static void unregisterSequentialContainer (int id)
static int registerUnitCacheHook (const QQmlPrivate::RegisterQmlUnitCacheHook &hookRegistration)
static void clearTypeRegistrations ()
static QList< QQmlProxyMetaObject::ProxyDataproxyData (const QMetaObject *mo, const QMetaObject *baseMetaObject, QMetaObject *lastMetaObject)
static void clone (QMetaObjectBuilder &builder, const QMetaObject *mo, const QMetaObject *ignoreStart, const QMetaObject *ignoreEnd, ClonePolicy policy)
static void qmlInsertModuleRegistration (const QString &uri, void(*registerFunction)())
static void qmlRemoveModuleRegistration (const QString &uri)
static bool qmlRegisterModuleTypes (const QString &uri)
static bool isValueType (QMetaType type)
static QQmlValueTypevalueType (QMetaType metaType)
static const QMetaObjectmetaObjectForValueType (QMetaType type)
static QQmlPropertyCache::ConstPtr findPropertyCacheInCompositeTypes (QMetaType t)
static void registerInternalCompositeType (const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit)
static void unregisterInternalCompositeType (const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit)
static int countInternalCompositeTypeSelfReferences (const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit)
static QQmlRefPointer< QV4::CompiledData::CompilationUnitobtainCompilationUnit (QMetaType type)
static QQmlRefPointer< QV4::CompiledData::CompilationUnitobtainCompilationUnit (const QUrl &url)

Friends

class QQmlDesignerMetaObject

Detailed Description

Definition at line 37 of file qqmlmetatype_p.h.

Member Enumeration Documentation

◆ CachedUnitLookupError

Enumerator
NoError 
NoUnitFound 
VersionMismatch 
NotFullyTyped 

Definition at line 194 of file qqmlmetatype_p.h.

◆ CacheMode

Enumerator
RejectAll 
AcceptUntyped 
RequireFullyTyped 

Definition at line 201 of file qqmlmetatype_p.h.

◆ ClonePolicy

Enumerator
CloneAll 
CloneEnumsOnly 

Definition at line 252 of file qqmlmetatype_p.h.

◆ CompositeTypeLookupMode

Enumerator
NonSingleton 
Singleton 
JavaScript 

Definition at line 76 of file qqmlmetatype_p.h.

◆ RegistrationResult

Enumerator
Success 
Failure 
NoRegistrationFunction 

Definition at line 43 of file qqmlmetatype_p.h.

Member Function Documentation

◆ attachedPropertiesFunc()

QQmlAttachedPropertiesFunc QQmlMetaType::attachedPropertiesFunc ( QQmlTypeLoader * typeLoader,
const QMetaObject * mo )
static

Definition at line 1164 of file qqmlmetatype.cpp.

◆ clearTypeRegistrations()

void QQmlMetaType::clearTypeRegistrations ( )
static

Definition at line 316 of file qqmlmetatype.cpp.

◆ clone()

void QQmlMetaType::clone ( QMetaObjectBuilder & builder,
const QMetaObject * mo,
const QMetaObject * ignoreStart,
const QMetaObject * ignoreEnd,
QQmlMetaType::ClonePolicy policy )
static

Definition at line 218 of file qqmlmetatype.cpp.

◆ countInternalCompositeTypeSelfReferences()

int QQmlMetaType::countInternalCompositeTypeSelfReferences ( const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & compilationUnit)
static

Definition at line 2010 of file qqmlmetatype.cpp.

◆ defaultMethod() [1/2]

QMetaMethod QQmlMetaType::defaultMethod ( const QMetaObject * metaObject)
static

Definition at line 1199 of file qqmlmetatype.cpp.

◆ defaultMethod() [2/2]

QMetaMethod QQmlMetaType::defaultMethod ( QObject * obj)
static

Definition at line 1216 of file qqmlmetatype.cpp.

◆ defaultProperty() [1/2]

QMetaProperty QQmlMetaType::defaultProperty ( const QMetaObject * metaObject)
static

Definition at line 1173 of file qqmlmetatype.cpp.

◆ defaultProperty() [2/2]

QMetaProperty QQmlMetaType::defaultProperty ( QObject * obj)
static

Definition at line 1190 of file qqmlmetatype.cpp.

◆ equalBaseUrls()

bool QQmlMetaType::equalBaseUrls ( const QUrl & aUrl,
const QUrl & bUrl )
inlinestatic

Definition at line 56 of file qqmlmetatype_p.h.

◆ fetchOrCreateInlineComponentTypeForUrl()

QQmlType QQmlMetaType::fetchOrCreateInlineComponentTypeForUrl ( const QUrl & url)
static

Definition at line 1370 of file qqmlmetatype.cpp.

◆ findCachedCompilationUnit()

const QQmlPrivate::CachedQmlUnit * QQmlMetaType::findCachedCompilationUnit ( const QUrl & uri,
QQmlMetaType::CacheMode mode,
CachedUnitLookupError * status )
static

Definition at line 1718 of file qqmlmetatype.cpp.

◆ findCompositeType()

QQmlType QQmlMetaType::findCompositeType ( const QUrl & url,
const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & compilationUnit,
CompositeTypeLookupMode mode = NonSingleton )
static

Definition at line 696 of file qqmlmetatype.cpp.

◆ findInlineComponentType() [1/2]

QQmlType QQmlMetaType::findInlineComponentType ( const QUrl & baseUrl,
const QString & name,
const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & compilationUnit )
inlinestatic

Definition at line 89 of file qqmlmetatype_p.h.

◆ findInlineComponentType() [2/2]

QQmlType QQmlMetaType::findInlineComponentType ( const QUrl & url,
const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & compilationUnit )
static

Definition at line 748 of file qqmlmetatype.cpp.

◆ findPropertyCacheInCompositeTypes()

QQmlPropertyCache::ConstPtr QQmlMetaType::findPropertyCacheInCompositeTypes ( QMetaType t)
static

Definition at line 1948 of file qqmlmetatype.cpp.

◆ freeUnusedTypesAndCaches()

void QQmlMetaType::freeUnusedTypesAndCaches ( )
static

Definition at line 1579 of file qqmlmetatype.cpp.

◆ inlineComponentType()

QQmlType QQmlMetaType::inlineComponentType ( const QQmlType & outerType,
const QString & name )
inlinestatic

Definition at line 114 of file qqmlmetatype_p.h.

◆ inlineComponentUrl()

QUrl QQmlMetaType::inlineComponentUrl ( const QUrl & baseUrl,
const QString & name )
inlinestatic

Definition at line 49 of file qqmlmetatype_p.h.

◆ interfaceIId()

const char * QQmlMetaType::interfaceIId ( QMetaType type)
static

Definition at line 1234 of file qqmlmetatype.cpp.

◆ isInterface()

bool QQmlMetaType::isInterface ( QMetaType type)
static

See qmlRegisterInterface() for information about when this will return true.

Definition at line 1228 of file qqmlmetatype.cpp.

◆ isList()

bool QQmlMetaType::isList ( QMetaType type)
static

Definition at line 1241 of file qqmlmetatype.cpp.

◆ isStronglyLockedModule()

bool QQmlMetaType::isStronglyLockedModule ( const QString & uri,
QTypeRevision version )
static

Definition at line 1073 of file qqmlmetatype.cpp.

◆ isValueType()

bool QQmlMetaType::isValueType ( QMetaType type)
static

Definition at line 1882 of file qqmlmetatype.cpp.

◆ latestModuleVersion()

QTypeRevision QQmlMetaType::latestModuleVersion ( const QString & uri)
static

Definition at line 1056 of file qqmlmetatype.cpp.

◆ listValueType()

QMetaType QQmlMetaType::listValueType ( QMetaType type)
static

Definition at line 1144 of file qqmlmetatype.cpp.

◆ matchingModuleVersion()

QTypeRevision QQmlMetaType::matchingModuleVersion ( const QString & module,
QTypeRevision version )
static

Definition at line 1089 of file qqmlmetatype.cpp.

◆ metaObjectForType()

QQmlMetaObject QQmlMetaType::metaObjectForType ( QMetaType metaType)
static

Look up by type's metaObject.

Definition at line 1427 of file qqmlmetatype.cpp.

◆ metaObjectForValueType()

const QMetaObject * QQmlMetaType::metaObjectForValueType ( QMetaType type)
static

Definition at line 1893 of file qqmlmetatype.cpp.

◆ moduleImports()

QList< QQmlDirParser::Import > QQmlMetaType::moduleImports ( const QString & uri,
QTypeRevision version )
static

Definition at line 854 of file qqmlmetatype.cpp.

◆ normalizedUrl()

QUrl QQmlMetaType::normalizedUrl ( const QUrl & unNormalizedUrl)
inlinestatic

Definition at line 68 of file qqmlmetatype_p.h.

◆ obtainCompilationUnit() [1/2]

QQmlRefPointer< QV4::CompiledData::CompilationUnit > QQmlMetaType::obtainCompilationUnit ( const QUrl & url)
static

Definition at line 2026 of file qqmlmetatype.cpp.

◆ obtainCompilationUnit() [2/2]

QQmlRefPointer< QV4::CompiledData::CompilationUnit > QQmlMetaType::obtainCompilationUnit ( QMetaType type)
static

Definition at line 2017 of file qqmlmetatype.cpp.

◆ parentFunctions()

QList< QQmlPrivate::AutoParentFunction > QQmlMetaType::parentFunctions ( )
static

Definition at line 1123 of file qqmlmetatype.cpp.

◆ prependCachedUnitLookupFunction()

void QQmlMetaType::prependCachedUnitLookupFunction ( QQmlPrivate::QmlUnitCacheLookupFunction handler)
static

Definition at line 1755 of file qqmlmetatype.cpp.

◆ prettyTypeName()

QString QQmlMetaType::prettyTypeName ( const QObject * object)
static

Returns the pretty QML type name (e.g.

'Item' instead of 'QtQuickItem') for the given object.

Definition at line 1770 of file qqmlmetatype.cpp.

◆ propertyCache() [1/3]

QQmlPropertyCache::ConstPtr QQmlMetaType::propertyCache ( const QMetaObject * metaObject,
QTypeRevision version = QTypeRevision() )
static

Definition at line 1393 of file qqmlmetatype.cpp.

◆ propertyCache() [2/3]

QQmlPropertyCache::ConstPtr QQmlMetaType::propertyCache ( const QQmlType & type,
QTypeRevision version )
static

Definition at line 1400 of file qqmlmetatype.cpp.

◆ propertyCache() [3/3]

QQmlPropertyCache::ConstPtr QQmlMetaType::propertyCache ( QObject * obj,
QTypeRevision version = QTypeRevision() )
static

Returns a QQmlPropertyCache for obj if one is available.

If obj is null, being deleted or contains a dynamic meta object, nullptr is returned.

Definition at line 1386 of file qqmlmetatype.cpp.

◆ propertyCacheForType()

QQmlPropertyCache::ConstPtr QQmlMetaType::propertyCacheForType ( QMetaType metaType)
static

Look up by type's metaObject and version.

Definition at line 1444 of file qqmlmetatype.cpp.

◆ protectModule()

bool QQmlMetaType::protectModule ( const QString & uri,
QTypeRevision version,
bool weakProtectAllVersions = false )
static

Definition at line 814 of file qqmlmetatype.cpp.

◆ proxyData()

QList< QQmlProxyMetaObject::ProxyData > QQmlMetaType::proxyData ( const QMetaObject * mo,
const QMetaObject * baseMetaObject,
QMetaObject * lastMetaObject )
static

Definition at line 1809 of file qqmlmetatype.cpp.

◆ qmlAllTypes()

QList< QQmlType > QQmlMetaType::qmlAllTypes ( )
static

Returns the list of all registered types.

Definition at line 1683 of file qqmlmetatype.cpp.

◆ qmlInsertModuleRegistration()

void QQmlMetaType::qmlInsertModuleRegistration ( const QString & uri,
void(* registerFunction )() )
static

Definition at line 288 of file qqmlmetatype.cpp.

◆ qmlListType()

QQmlType QQmlMetaType::qmlListType ( QMetaType metaType)
static

Definition at line 1344 of file qqmlmetatype.cpp.

◆ qmlRegisterModuleTypes()

bool QQmlMetaType::qmlRegisterModuleTypes ( const QString & uri)
static

Definition at line 310 of file qqmlmetatype.cpp.

◆ qmlRemoveModuleRegistration()

void QQmlMetaType::qmlRemoveModuleRegistration ( const QString & uri)
static

Definition at line 297 of file qqmlmetatype.cpp.

◆ qmlSingletonTypes()

QList< QQmlType > QQmlMetaType::qmlSingletonTypes ( )
static

Returns the list of registered QML singleton types.

Definition at line 1692 of file qqmlmetatype.cpp.

◆ qmlType() [1/6]

QQmlType QQmlMetaType::qmlType ( const QHashedStringRef & name,
const QHashedStringRef & module,
QTypeRevision version )
static

Returns the type (if any) of name in module and the specified version.

If version has no major version, accept any version. If version has no minor version, accept any minor version. If module is empty, search in all modules and accept any version.

Definition at line 1273 of file qqmlmetatype.cpp.

◆ qmlType() [2/6]

QQmlType QQmlMetaType::qmlType ( const QMetaObject * metaObject)
static

Returns the type (if any) that corresponds to the metaObject.

Returns an invalid type if no such type is registered.

Definition at line 1294 of file qqmlmetatype.cpp.

◆ qmlType() [3/6]

QQmlType QQmlMetaType::qmlType ( const QMetaObject * metaObject,
const QHashedStringRef & module,
QTypeRevision version )
static

Returns the type (if any) that corresponds to the metaObject in version specified by version_major and version_minor in module specified by uri.

Returns null if no type is registered.

Definition at line 1305 of file qqmlmetatype.cpp.

◆ qmlType() [4/6]

QQmlType QQmlMetaType::qmlType ( const QString & qualifiedName,
QTypeRevision version )
static

Returns the type (if any) of URI-qualified named qualifiedName and version specified by version_major and version_minor.

Definition at line 1253 of file qqmlmetatype.cpp.

◆ qmlType() [5/6]

QQmlType QQmlMetaType::qmlType ( const QUrl & unNormalizedUrl)
static

Returns the type (if any) that corresponds to the given url in the set of composite types added through file imports.

Returns null if no such type is registered.

Definition at line 1357 of file qqmlmetatype.cpp.

◆ qmlType() [6/6]

QQmlType QQmlMetaType::qmlType ( QMetaType metaType)
static

Returns the type (if any) that corresponds to metaType.

Returns an invalid QQmlType if no such type is registered.

Definition at line 1337 of file qqmlmetatype.cpp.

◆ qmlTypeById()

QQmlType QQmlMetaType::qmlTypeById ( int qmlTypeId)
static

Returns the type (if any) that corresponds to qmlTypeId.

Returns an invalid QQmlType if no such type is registered.

Definition at line 1324 of file qqmlmetatype.cpp.

◆ qmlTypeNames()

QList< QString > QQmlMetaType::qmlTypeNames ( )
static

Returns the list of registered QML type names.

Definition at line 1650 of file qqmlmetatype.cpp.

◆ qmlTypes()

QList< QQmlType > QQmlMetaType::qmlTypes ( )
static

Returns the list of registered QML types.

Definition at line 1669 of file qqmlmetatype.cpp.

◆ rawMetaObjectForType()

QQmlMetaObject QQmlMetaType::rawMetaObjectForType ( QMetaType metaType)
static

Look up by type's baseMetaObject.

Definition at line 1412 of file qqmlmetatype.cpp.

◆ rawPropertyCacheForType() [1/2]

QQmlPropertyCache::ConstPtr QQmlMetaType::rawPropertyCacheForType ( QMetaType metaType)
static

Look up by type's baseMetaObject and unspecified/any version. TODO: Is this correct? Passing a plain QTypeRevision() rather than QTypeRevision::zero() or the actual type's version seems strange. The behavior has been in place for a while.

Definition at line 1466 of file qqmlmetatype.cpp.

◆ rawPropertyCacheForType() [2/2]

QQmlPropertyCache::ConstPtr QQmlMetaType::rawPropertyCacheForType ( QMetaType metaType,
QTypeRevision version )
static

Look up by QQmlType and version. We only fall back to lookup by metaobject if the type has no revisiononed attributes here. Unspecified versions are interpreted as "any".

Definition at line 1491 of file qqmlmetatype.cpp.

◆ registerAutoParentFunction()

int QQmlMetaType::registerAutoParentFunction ( const QQmlPrivate::RegisterAutoParent & autoparent)
static

Definition at line 352 of file qqmlmetatype.cpp.

◆ registerCompositeSingletonType()

QQmlType QQmlMetaType::registerCompositeSingletonType ( const QQmlPrivate::RegisterCompositeSingletonType & type,
const QQmlType::SingletonInstanceInfo::ConstPtr & siinfo )
static

Definition at line 537 of file qqmlmetatype.cpp.

◆ registerCompositeType()

QQmlType QQmlMetaType::registerCompositeType ( const QQmlPrivate::RegisterCompositeType & type)
static

Definition at line 561 of file qqmlmetatype.cpp.

◆ registerInterface()

QQmlType QQmlMetaType::registerInterface ( const QQmlPrivate::RegisterInterface & type)
static

Definition at line 370 of file qqmlmetatype.cpp.

◆ registerInternalCompositeType()

void QQmlMetaType::registerInternalCompositeType ( const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & compilationUnit)
static

Definition at line 1954 of file qqmlmetatype.cpp.

◆ registerMetaObjectForType()

void QQmlMetaType::registerMetaObjectForType ( const QMetaObject * metaobject,
QQmlTypePrivate * type )
static

Definition at line 1534 of file qqmlmetatype.cpp.

◆ registerModule()

void QQmlMetaType::registerModule ( const char * uri,
QTypeRevision version )
static

Definition at line 890 of file qqmlmetatype.cpp.

◆ registerModuleImport()

void QQmlMetaType::registerModuleImport ( const QString & uri,
QTypeRevision version,
const QQmlDirParser::Import & import )
static

Definition at line 839 of file qqmlmetatype.cpp.

◆ registerPluginTypes()

QQmlMetaType::RegistrationResult QQmlMetaType::registerPluginTypes ( QObject * instance,
const QString & basePath,
const QString & uri,
const QString & typeNamespace,
QTypeRevision version,
QList< QQmlError > * errors )
static

Definition at line 935 of file qqmlmetatype.cpp.

◆ registerSequentialContainer()

QQmlType QQmlMetaType::registerSequentialContainer ( const QQmlPrivate::RegisterSequentialContainer & sequenceRegistration)
static

Definition at line 781 of file qqmlmetatype.cpp.

◆ registerSingletonType()

QQmlType QQmlMetaType::registerSingletonType ( const QQmlPrivate::RegisterSingletonType & type,
const QQmlType::SingletonInstanceInfo::ConstPtr & siinfo )
static

Definition at line 515 of file qqmlmetatype.cpp.

◆ registerType()

QQmlType QQmlMetaType::registerType ( const QQmlPrivate::RegisterType & type)
static

Definition at line 496 of file qqmlmetatype.cpp.

◆ registerTypeAlias()

void QQmlMetaType::registerTypeAlias ( int typeId,
const QString & name )
static

Definition at line 344 of file qqmlmetatype.cpp.

◆ registerUndeletableType()

void QQmlMetaType::registerUndeletableType ( const QQmlType & dtype)
static

Definition at line 916 of file qqmlmetatype.cpp.

◆ registerUnitCacheHook()

int QQmlMetaType::registerUnitCacheHook ( const QQmlPrivate::RegisterQmlUnitCacheHook & hookRegistration)
static

Definition at line 770 of file qqmlmetatype.cpp.

◆ removeCachedUnitLookupFunction()

void QQmlMetaType::removeCachedUnitLookupFunction ( QQmlPrivate::QmlUnitCacheLookupFunction handler)
static

Definition at line 1761 of file qqmlmetatype.cpp.

◆ removeFromInlineComponents()

template<typename InlineComponentContainer>
void QQmlMetaType::removeFromInlineComponents ( InlineComponentContainer & container,
const QQmlTypePrivate * reference )
inlinestatic

Definition at line 224 of file qqmlmetatype_p.h.

◆ removeQQmlTypePrivate()

template<typename QQmlTypeContainer>
void QQmlMetaType::removeQQmlTypePrivate ( QQmlTypeContainer & container,
const QQmlTypePrivate * reference )
inlinestatic

Definition at line 212 of file qqmlmetatype_p.h.

◆ toQObject()

QObject * QQmlMetaType::toQObject ( const QVariant & v,
bool * ok = nullptr )
static

Definition at line 1129 of file qqmlmetatype.cpp.

◆ typeForUrl()

QQmlType QQmlMetaType::typeForUrl ( const QUrl & url,
const QHashedStringRef & typeName,
CompositeTypeLookupMode mode,
QList< QQmlError > * errors,
QTypeRevision version = QTypeRevision() )
static

Definition at line 1033 of file qqmlmetatype.cpp.

◆ typeId()

int QQmlMetaType::typeId ( const char * uri,
QTypeRevision version,
const char * qmlName )
static

Definition at line 901 of file qqmlmetatype.cpp.

◆ typeModule()

QQmlTypeModule * QQmlMetaType::typeModule ( const QString & uri,
QTypeRevision version )
static

Definition at line 1110 of file qqmlmetatype.cpp.

◆ unregisterAutoParentFunction()

void QQmlMetaType::unregisterAutoParentFunction ( const QQmlPrivate::AutoParentFunction & function)
static

Definition at line 364 of file qqmlmetatype.cpp.

◆ unregisterInternalCompositeType()

void QQmlMetaType::unregisterInternalCompositeType ( const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & compilationUnit)
static

Definition at line 1986 of file qqmlmetatype.cpp.

◆ unregisterModuleImport()

void QQmlMetaType::unregisterModuleImport ( const QString & uri,
QTypeRevision version,
const QQmlDirParser::Import & import )
static

Definition at line 847 of file qqmlmetatype.cpp.

◆ unregisterSequentialContainer()

void QQmlMetaType::unregisterSequentialContainer ( int id)
static

Definition at line 809 of file qqmlmetatype.cpp.

◆ unregisterType()

void QQmlMetaType::unregisterType ( int type)
static

Definition at line 1515 of file qqmlmetatype.cpp.

◆ valueType()

QQmlValueType * QQmlMetaType::valueType ( QMetaType metaType)
static

Definition at line 1935 of file qqmlmetatype.cpp.

◆ QQmlDesignerMetaObject

friend class QQmlDesignerMetaObject
friend

Definition at line 39 of file qqmlmetatype_p.h.


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