Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmetatype.cpp File Reference
#include "qmetatype.h"
#include "qmetatype_p.h"
#include "qobject.h"
#include "qobjectdefs.h"
#include "qdatetime.h"
#include "qbytearray.h"
#include "qreadwritelock.h"
#include "qhash.h"
#include "qmap.h"
#include "qstring.h"
#include "qstringlist.h"
#include "qlist.h"
#include "qlocale.h"
#include "qdebug.h"
#include "quuid.h"
#include "qvariant.h"
#include "qdatastream.h"
#include "qbitarray.h"
#include "qurl.h"
#include "qjsonvalue.h"
#include "qjsonobject.h"
#include "qjsonarray.h"
#include "qjsondocument.h"
#include "qcborvalue.h"
#include "qcborarray.h"
#include "qcbormap.h"
#include "qbytearraylist.h"
#include "qmetaobject.h"
#include "qsequentialiterable.h"
#include "qassociativeiterable.h"
#include "qsize.h"
#include "qpoint.h"
#include "qrect.h"
#include "qline.h"
#include <bitset>
#include <new>
#include <cstring>
+ Include dependency graph for qmetatype.cpp:

Go to the source code of this file.

Classes

class  QMetaTypeFunctionRegistry< T, Key >
 

Namespaces

namespace  QtPrivate
 \macro QT_NAMESPACE
 

Macros

#define NS(x)   QT_PREPEND_NAMESPACE(x)
 
#define QT_ADD_STATIC_METATYPE(MetaTypeName, MetaTypeId, RealName)    { #RealName, sizeof(#RealName) - 1, MetaTypeId },
 
#define QT_ADD_STATIC_METATYPE_ALIASES_ITER(MetaTypeName, MetaTypeId, AliasingName, RealNameStr)    { RealNameStr, sizeof(RealNameStr) - 1, QMetaType::MetaTypeName },
 
#define QMETATYPE_CONVERTER_ASSIGN_DOUBLE(To, From)    QMETATYPE_CONVERTER(To, From, result = double(source); return true;)
 
#define QMETATYPE_CONVERTER_ASSIGN_NUMBER(To, From)    QMETATYPE_CONVERTER(To, From, result = To::number(source); return true;)
 
#define CONVERT_CBOR_AND_JSON(To)
 
#define INTEGRAL_CONVERTER(To)
 
#define FLOAT_CONVERTER(To)
 
#define QMETATYPE_CONVERTER_ASSIGN_QCHAR(From)    QMETATYPE_CONVERTER(QChar, From, result = QChar::fromUcs2(source); return true;)
 
#define QT_METATYPE_DECLARE_TEMPLATE_ITER(TypeName, Id, Name)
 

Typedefs

typedef QMetaTypeFunctionRegistry< QMetaType::ConverterFunction, QPair< int, int > > QMetaTypeConverterRegistry
 
using QMetaTypeMutableViewRegistry = QMetaTypeFunctionRegistry< QMetaType::MutableViewFunction, QPair< int, int > >
 

Functions

static QPartialOrdering threeWayCompare (const void *ptr1, const void *ptr2)
 
static const QMetaTypeModuleHelperqModuleHelperForType (int type)
 
QDebug operator<< (QDebug d, QMetaType m)
 
static QMetaEnum metaEnumFromType (QMetaType t)
 
static bool convertFromEnum (QMetaType fromType, const void *from, QMetaType toType, void *to)
 
static bool convertToEnum (QMetaType fromType, const void *from, QMetaType toType, void *to)
 
static bool convertIterableToVariantList (QMetaType fromType, const void *from, void *to)
 
static bool convertIterableToVariantMap (QMetaType fromType, const void *from, void *to)
 
static bool convertIterableToVariantHash (QMetaType fromType, const void *from, void *to)
 
static bool convertIterableToVariantPair (QMetaType fromType, const void *from, void *to)
 
static bool convertToSequentialIterable (QMetaType fromType, const void *from, void *to)
 
static bool canConvertToSequentialIterable (QMetaType fromType)
 
static bool canImplicitlyViewAsSequentialIterable (QMetaType fromType)
 
static bool viewAsSequentialIterable (QMetaType fromType, void *from, void *to)
 
static bool convertToAssociativeIterable (QMetaType fromType, const void *from, void *to)
 
static bool canConvertMetaObject (QMetaType fromType, QMetaType toType)
 
static bool canConvertToAssociativeIterable (QMetaType fromType)
 
static bool canImplicitlyViewAsAssociativeIterable (QMetaType fromType)
 
static bool viewAsAssociativeIterable (QMetaType fromType, void *from, void *to)
 
static bool convertMetaObject (QMetaType fromType, const void *from, QMetaType toType, void *to)
 
static int qMetaTypeStaticType (const char *typeName, int length)
 
static int qMetaTypeCustomType_unlocked (const char *typeName, int length)
 
static const QtPrivate::QMetaTypeInterfaceinterfaceForTypeNoWarning (int typeId)
 
template<bool tryNormalizedType>
static int qMetaTypeTypeImpl (const char *typeName, int length)
 
Q_CORE_EXPORT int qMetaTypeTypeInternal (const char *typeName)
 
static const QtPrivate::QMetaTypeInterfaceinterfaceForType (int typeId)
 

Variables

struct { 
 
   const char *   typeName 
 
   int   typeNameLength 
 
   int   type 
 
types [] 
 
 metatypeHelper = {}
 
Q_CONSTINIT Q_CORE_EXPORT const QMetaTypeModuleHelperqMetaTypeGuiHelper = nullptr
 
Q_CONSTINIT Q_CORE_EXPORT const QMetaTypeModuleHelperqMetaTypeWidgetsHelper = nullptr
 

Macro Definition Documentation

◆ CONVERT_CBOR_AND_JSON

#define CONVERT_CBOR_AND_JSON (   To)
Value:
if constexpr(std::is_same_v<To, Bool>) { \
if (!source.isBool()) \
return false; \
} else { \
if (!source.isInteger() && !source.isDouble()) \
return false; \
if constexpr(std::is_integral_v<To>) \
result = source.toInteger(); \
else \
result = source.toDouble(); \
} \
return true; \
); \
QMETATYPE_CONVERTER(To, QJsonValue, \
if constexpr(std::is_same_v<To, Bool>) { \
if (!source.isBool()) \
return false; \
} else { \
if (!source.isDouble()) \
return false; \
if constexpr(std::is_integral_v<To>) \
result = source.toInteger(); \
else \
result = source.toDouble(); \
} \
return true; \
)
\inmodule QtCore\reentrant
Definition qcborvalue.h:50
bool toBool(bool defaultValue=false) const
Returns the boolean value stored in this QCborValue, if it is of a boolean type.
Definition qcborvalue.h:192
\inmodule QtCore\reentrant
Definition qjsonvalue.h:24
bool toBool(bool defaultValue=false) const
Converts the value to a bool and returns it.
#define QMETATYPE_CONVERTER(To, From, assign_and_return)
Definition qmetatype_p.h:23
GLsizei GLsizei GLchar * source
GLuint64EXT * result
[6]

◆ FLOAT_CONVERTER

#define FLOAT_CONVERTER (   To)
Value:
QMETATYPE_CONVERTER_ASSIGN(To, Char); \
QMETATYPE_CONVERTER_ASSIGN(To, UChar); \
QMETATYPE_CONVERTER_ASSIGN(To, SChar); \
QMETATYPE_CONVERTER_ASSIGN(To, Short); \
QMETATYPE_CONVERTER_ASSIGN(To, UShort); \
QMETATYPE_CONVERTER_ASSIGN(To, Int); \
QMETATYPE_CONVERTER_ASSIGN(To, UInt); \
QMETATYPE_CONVERTER_ASSIGN(To, Long); \
QMETATYPE_CONVERTER_ASSIGN(To, ULong); \
QMETATYPE_CONVERTER_ASSIGN(To, LongLong); \
QMETATYPE_CONVERTER_ASSIGN(To, ULongLong); \
QMETATYPE_CONVERTER_ASSIGN(To, Float); \
QMETATYPE_CONVERTER_ASSIGN(To, Double); \
QMETATYPE_CONVERTER(To, QString, \
bool ok = false; \
result = source.toDouble(&ok); \
return ok; \
); \
QMETATYPE_CONVERTER(To, QByteArray, \
bool ok = false; \
result = source.toDouble(&ok); \
return ok; \
); \
CONVERT_CBOR_AND_JSON(To)
\inmodule QtCore
Definition qbytearray.h:57
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
#define QMETATYPE_CONVERTER_ASSIGN(To, From)
Definition qmetatype_p.h:32
char Char

◆ INTEGRAL_CONVERTER

#define INTEGRAL_CONVERTER (   To)

◆ NS

#define NS (   x)    QT_PREPEND_NAMESPACE(x)

Definition at line 65 of file qmetatype.cpp.

◆ QMETATYPE_CONVERTER_ASSIGN_DOUBLE

#define QMETATYPE_CONVERTER_ASSIGN_DOUBLE (   To,
  From 
)     QMETATYPE_CONVERTER(To, From, result = double(source); return true;)

◆ QMETATYPE_CONVERTER_ASSIGN_NUMBER

#define QMETATYPE_CONVERTER_ASSIGN_NUMBER (   To,
  From 
)     QMETATYPE_CONVERTER(To, From, result = To::number(source); return true;)

◆ QMETATYPE_CONVERTER_ASSIGN_QCHAR

#define QMETATYPE_CONVERTER_ASSIGN_QCHAR (   From)     QMETATYPE_CONVERTER(QChar, From, result = QChar::fromUcs2(source); return true;)

◆ QT_ADD_STATIC_METATYPE

#define QT_ADD_STATIC_METATYPE (   MetaTypeName,
  MetaTypeId,
  RealName 
)     { #RealName, sizeof(#RealName) - 1, MetaTypeId },

Definition at line 942 of file qmetatype.cpp.

◆ QT_ADD_STATIC_METATYPE_ALIASES_ITER

#define QT_ADD_STATIC_METATYPE_ALIASES_ITER (   MetaTypeName,
  MetaTypeId,
  AliasingName,
  RealNameStr 
)     { RealNameStr, sizeof(RealNameStr) - 1, QMetaType::MetaTypeName },

Definition at line 945 of file qmetatype.cpp.

◆ QT_METATYPE_DECLARE_TEMPLATE_ITER

#define QT_METATYPE_DECLARE_TEMPLATE_ITER (   TypeName,
  Id,
  Name 
)
Value:
template class QMetaTypeForType<Name>; \
template struct QMetaTypeInterfaceWrapper<Name>;

Definition at line 3215 of file qmetatype.cpp.

Typedef Documentation

◆ QMetaTypeConverterRegistry

◆ QMetaTypeMutableViewRegistry

Function Documentation

◆ canConvertMetaObject()

static bool canConvertMetaObject ( QMetaType  fromType,
QMetaType  toType 
)
static

Definition at line 2234 of file qmetatype.cpp.

References QMetaType::flags(), QMetaObject::inherits(), QMetaType::IsPointer, and QMetaType::metaObject().

Referenced by QMetaType::canConvert(), and QMetaType::canView().

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

◆ canConvertToAssociativeIterable()

static bool canConvertToAssociativeIterable ( QMetaType  fromType)
static

Definition at line 2247 of file qmetatype.cpp.

References QMetaType::canConvert(), QMetaType::fromType(), and QMetaType::id().

Referenced by QMetaType::canConvert().

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

◆ canConvertToSequentialIterable()

static bool canConvertToSequentialIterable ( QMetaType  fromType)
static

Definition at line 2146 of file qmetatype.cpp.

References QMetaType::canConvert(), QMetaType::fromType(), and QMetaType::id().

Referenced by QMetaType::canConvert().

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

◆ canImplicitlyViewAsAssociativeIterable()

static bool canImplicitlyViewAsAssociativeIterable ( QMetaType  fromType)
static

Definition at line 2258 of file qmetatype.cpp.

References QMetaType::canView(), QMetaType::fromType(), and QMetaType::id().

Referenced by QMetaType::canView().

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

◆ canImplicitlyViewAsSequentialIterable()

static bool canImplicitlyViewAsSequentialIterable ( QMetaType  fromType)
static

Definition at line 2160 of file qmetatype.cpp.

References QMetaType::canView(), QMetaType::fromType(), and QMetaType::id().

Referenced by QMetaType::canView().

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

◆ convertFromEnum()

static bool convertFromEnum ( QMetaType  fromType,
const void from,
QMetaType  toType,
void to 
)
static

Definition at line 1912 of file qmetatype.cpp.

References QMetaType::convert(), QMetaType::flags(), QString::fromUtf8(), QMetaType::id(), QMetaEnum::isFlag(), QMetaType::IsUnsignedEnumeration, QMetaEnum::isValid(), keys, metaEnumFromType(), QMetaType::sizeOf(), QMetaEnum::valueToKey(), and QMetaEnum::valueToKeys().

Referenced by QMetaType::convert().

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

◆ convertIterableToVariantHash()

static bool convertIterableToVariantHash ( QMetaType  fromType,
const void from,
void to 
)
static

Definition at line 2064 of file qmetatype.cpp.

References QMap< Key, T >::begin(), QHash< Key, T >::clear(), QMetaType::convert(), QMap< Key, T >::end(), it, map, and QMap< Key, T >::size().

Referenced by QMetaType::convert().

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

◆ convertIterableToVariantList()

static bool convertIterableToVariantList ( QMetaType  fromType,
const void from,
void to 
)
static

Definition at line 2035 of file qmetatype.cpp.

References QList< T >::begin(), QList< T >::clear(), QMetaType::convert(), QList< T >::end(), it, list, QList< T >::reserve(), and QList< T >::size().

Referenced by QMetaType::convert().

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

◆ convertIterableToVariantMap()

static bool convertIterableToVariantMap ( QMetaType  fromType,
const void from,
void to 
)
static

Definition at line 2050 of file qmetatype.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::clear(), QMetaType::convert(), QMap< Key, T >::end(), it, and map.

Referenced by QMetaType::convert().

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

◆ convertIterableToVariantPair()

static bool convertIterableToVariantPair ( QMetaType  fromType,
const void from,
void to 
)
static

Definition at line 2080 of file qmetatype.cpp.

References QMetaType::id(), pi, qMakePair(), and v1.

Referenced by QMetaType::convert().

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

◆ convertMetaObject()

static bool convertMetaObject ( QMetaType  fromType,
const void from,
QMetaType  toType,
void to 
)
static

Definition at line 2295 of file qmetatype.cpp.

References QMetaObject::cast(), QMetaType::construct(), QMetaType::destruct(), QMetaType::flags(), QObject::inherits(), QMetaObject::inherits(), QMetaType::IsPointer, QMetaType::metaObject(), and QMetaType::PointerToQObject.

Referenced by QMetaType::convert(), and QMetaType::view().

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

◆ convertToAssociativeIterable()

static bool convertToAssociativeIterable ( QMetaType  fromType,
const void from,
void to 
)
static

Definition at line 2210 of file qmetatype.cpp.

References QMetaType::convert(), QMetaType::fromType(), i, and QMetaType::id().

Referenced by QMetaType::convert().

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

◆ convertToEnum()

static bool convertToEnum ( QMetaType  fromType,
const void from,
QMetaType  toType,
void to 
)
static

Definition at line 1988 of file qmetatype.cpp.

References QMetaType::convert(), QMetaType::id(), QMetaEnum::isValid(), keys, QMetaEnum::keysToValue(), metaEnumFromType(), ok, QMetaType::sizeOf(), and QString::toUtf8().

Referenced by QMetaType::convert().

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

◆ convertToSequentialIterable()

static bool convertToSequentialIterable ( QMetaType  fromType,
const void from,
void to 
)
static

Definition at line 2111 of file qmetatype.cpp.

References QMetaType::convert(), QMetaType::fromType(), i, and QMetaType::id().

Referenced by QMetaType::convert().

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

◆ interfaceForType()

const QtPrivate::QMetaTypeInterface * interfaceForType ( int  typeId)
inlinestaticoverride

Definition at line 3179 of file qmetatype.cpp.

References interfaceForTypeNoWarning(), qWarning, and QMetaType::UnknownType.

+ Here is the call graph for this function:

◆ interfaceForTypeNoWarning()

static const QtPrivate::QMetaTypeInterface * interfaceForTypeNoWarning ( int  typeId)
static

Definition at line 2732 of file qmetatype.cpp.

References qModuleHelperForType(), and QMetaType::User.

Referenced by interfaceForType(), and QMetaType::isRegistered().

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

◆ metaEnumFromType()

static QMetaEnum metaEnumFromType ( QMetaType  t)
static

returns a QMetaEnum for a given meta tape type id if possible

Definition at line 1892 of file qmetatype.cpp.

References QByteArray::chop(), QByteArray::endsWith(), QMetaType::IsEnumeration, QByteArray::lastIndexOf(), metaObject(), QByteArrayView::size(), QByteArray::sliced(), and QByteArray::startsWith().

Referenced by convertFromEnum(), and convertToEnum().

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

◆ operator<<()

QDebug operator<< ( QDebug  d,
QMetaType  m 
)

Definition at line 1828 of file qmetatype.cpp.

◆ qMetaTypeCustomType_unlocked()

static int qMetaTypeCustomType_unlocked ( const char *  typeName,
int  length 
)
static

Definition at line 2696 of file qmetatype.cpp.

References QByteArray::fromRawData(), Q_ASSERT, typeName, and QMetaType::UnknownType.

Referenced by qMetaTypeTypeImpl().

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

◆ qMetaTypeStaticType()

static int qMetaTypeStaticType ( const char *  typeName,
int  length 
)
inlinestatic

Definition at line 2681 of file qmetatype.cpp.

References i, typeName, and typeNameLength.

Referenced by qMetaTypeTypeImpl().

+ Here is the caller graph for this function:

◆ qMetaTypeTypeImpl()

template<bool tryNormalizedType>
static int qMetaTypeTypeImpl ( const char *  typeName,
int  length 
)
inlinestatic

Definition at line 2757 of file qmetatype.cpp.

References lock, QMetaObject::normalizedType(), NS, qMetaTypeCustomType_unlocked(), qMetaTypeStaticType(), type, typeName, and QMetaType::UnknownType.

Referenced by qMetaTypeTypeInternal().

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

◆ qMetaTypeTypeInternal()

Q_CORE_EXPORT int qMetaTypeTypeInternal ( const char *  typeName)

Similar to QMetaType::type(); the only difference is that this function doesn't attempt to normalize the type name (i.e., the lookup will fail for type names in non-normalized form).

Definition at line 2797 of file qmetatype.cpp.

References qMetaTypeTypeImpl(), qstrlen(), and typeName.

Referenced by isBuiltinType(), and nameToBuiltinType().

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

◆ qModuleHelperForType()

static const QMetaTypeModuleHelper * qModuleHelperForType ( int  type)
static

Definition at line 1640 of file qmetatype.cpp.

References QMetaType::FirstGuiType, QMetaType::FirstWidgetsType, QMetaType::LastCoreType, QMetaType::LastGuiType, QMetaType::LastWidgetsType, metatypeHelper, qMetaTypeGuiHelper, and qMetaTypeWidgetsHelper.

Referenced by QMetaType::canConvert(), QMetaType::convert(), and interfaceForTypeNoWarning().

+ Here is the caller graph for this function:

◆ threeWayCompare()

static QPartialOrdering threeWayCompare ( const void ptr1,
const void ptr2 
)
static

Definition at line 732 of file qmetatype.cpp.

References QPartialOrdering::Equivalent, QPartialOrdering::Greater, and QPartialOrdering::Less.

Referenced by QMetaType::compare().

+ Here is the caller graph for this function:

◆ viewAsAssociativeIterable()

static bool viewAsAssociativeIterable ( QMetaType  fromType,
void from,
void to 
)
static

Definition at line 2270 of file qmetatype.cpp.

References QMetaType::fromType(), i, QMetaType::id(), j, and QMetaType::view().

Referenced by QMetaType::view().

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

◆ viewAsSequentialIterable()

static bool viewAsSequentialIterable ( QMetaType  fromType,
void from,
void to 
)
static

Definition at line 2175 of file qmetatype.cpp.

References QMetaType::fromType(), i, QMetaType::id(), j, and QMetaType::view().

Referenced by QMetaType::view().

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

Variable Documentation

◆ metatypeHelper

metatypeHelper = {}
static

Referenced by qModuleHelperForType().

◆ qMetaTypeGuiHelper

Q_CONSTINIT Q_CORE_EXPORT const QMetaTypeModuleHelper* qMetaTypeGuiHelper = nullptr

Definition at line 1637 of file qmetatype.cpp.

Referenced by qModuleHelperForType(), and qRegisterGuiVariant().

◆ qMetaTypeWidgetsHelper

Q_CONSTINIT Q_CORE_EXPORT const QMetaTypeModuleHelper* qMetaTypeWidgetsHelper = nullptr

Definition at line 1638 of file qmetatype.cpp.

Referenced by qModuleHelperForType(), and qRegisterWidgetsVariant().

◆ type

int type

Definition at line 950 of file qmetatype.cpp.

Referenced by qMetaTypeTypeImpl().

◆ typeName

const char* typeName

Definition at line 950 of file qmetatype.cpp.

Referenced by QQmlDirParser::Component::Component(), CustomType::CustomType(), QQmlApplicationEngine::QQmlApplicationEngine(), QQmlComponent::QQmlComponent(), addFunction(), QSSGQmlUtilities::addResource(), ForbiddenChildrenPropertyValidatorPass::addWarning(), QSSGQmlUtilities::applyEdit(), buildMetaObject(), PolishLoopDetector::check(), QQmlDirParser::checkNonRelative(), checkRegistration(), QQmlJSTypeResolver::containedTypeName(), QtObject::createComponent(), QtObject::createComponent(), QQuickDesignerSupportItems::createPrimitive(), createTypeForUrl(), QQmlTypeData::done(), QmlTypesClassDescription::findType(), QMetaType::fromName(), generateInterfaceXml(), QSQLiteResultPrivate::initColumns(), QTest::Internal::QCborValueFormatter::innerFormat(), QQmlJS::Dom::PropertyDefinition::isAlias(), QQmlJSLinter::lintModule(), QQmlApplicationEngine::loadFromModule(), QQmlComponent::loadFromModule(), QQmlPropertyCacheCreator< ObjectContainer >::metaTypeForParameter(), QSSGQmlUtilities::nodeTypeFromName(), Moc::parseDeclareMetatype(), QQmlMetaType::prettyTypeName(), QQmlJSImportVisitor::processPropertyBindingObjects(), qFindInlineComponents(), qGetColumnType(), qGetTableInfo(), qMetaTypeCustomType_unlocked(), qMetaTypeStaticType(), qMetaTypeTypeImpl(), qMetaTypeTypeInternal(), qmlRegisterSingletonInstance(), qmlRegisterSingletonType(), qmlRegisterSingletonType(), qmlRegisterSingletonType(), QMetaType::qRegisterMetaType(), QMetaTypeIdQObject< T *, QMetaType::PointerToQObject >::qt_metatype_id(), QMetaTypeIdQObject< T *, QMetaType::PointerToGadget >::qt_metatype_id(), QMetaTypeIdQObject< T, QMetaType::IsEnumeration >::qt_metatype_id(), QQmlJSScope::qualifiedNameFrom(), queuedConnectionTypes(), registerComplexDBusType(), QQmlMetaType::registerCompositeSingletonType(), QQmlMetaType::registerCompositeType(), QQmlSA::PassManager::registerPropertyPass(), QQmlSA::PassManagerPrivate::registerPropertyPass(), QQmlMetaType::registerSingletonType(), QQmlSA::GenericPass::resolveAttached(), QQmlSA::GenericPass::resolveAttachedInFileScope(), QQmlSA::GenericPass::resolveBuiltinType(), QQmlJSScope::resolveEnums(), QQmlSA::GenericPass::resolveType(), LoadHelper::resolveType(), QQmlSA::GenericPass::resolveTypeInFileScope(), QQmlJSMetaPropertyBinding::setInterceptor(), QQmlJSMetaPropertyBinding::setObject(), QQmlJSMetaPropertyBinding::setValueSource(), QQmlData::signalEmitted(), QQmlEngine::singletonInstance(), QQmlEngine::singletonInstance(), QQmlBinding::slowWrite(), QQmlBinding::slowWrite(), QmlIR::Parameter::stringToBuiltinType(), typeNameToXml(), typeNameToXml(), QQmlJS::Dom::PropertyDefinition::typePath(), QQmlJS::Dom::MethodInfo::typePath(), QSGRhiShaderEffectMaterial::updateTextureProviders(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QDBusMetaObjectGenerator::write(), QmlTypeRegistrar::write(), and QSSGQmlUtilities::writeNodeProperties().

◆ typeNameLength

int typeNameLength

Definition at line 950 of file qmetatype.cpp.

Referenced by qMetaTypeStaticType().

◆ [struct]

const struct { ... } types[]
Initial value:
= {
{nullptr, 0, QMetaType::UnknownType}
}
#define QT_ADD_STATIC_METATYPE(MetaTypeName, MetaTypeId, RealName)
double qreal
Definition qtypes.h:92