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
QQmlPrivate Namespace Reference

Classes

class  QQmlElement
struct  HasSingletonFactory
struct  HasSingletonFactory< T, WrapperT, std::void_t< decltype(WrapperT::create(static_cast< QQmlEngine * >(nullptr), static_cast< QJSEngine * >(nullptr)))> >
struct  QmlMarkerFunction
struct  QmlMarkerFunction< Ret(Class::*)()>
struct  Constructors
struct  Constructors< T, WrapperT, SingletonConstructionMode::Constructor >
struct  Constructors< T, WrapperT, SingletonConstructionMode::None >
struct  Constructors< T, WrapperT, SingletonConstructionMode::Factory >
struct  Constructors< T, WrapperT, SingletonConstructionMode::FactoryWrapper >
struct  ExtendedType
struct  ExtendedType< T, false, false >
struct  ExtendedType< T, true, false >
struct  ExtendedType< T, false, true >
struct  ValueTypeFactory
struct  ValueTypeFactory< F, std::void_t< decltype(F::create(QJSValue()))> >
struct  ValueType
struct  ValueType< T, F, false, false >
struct  ValueType< T, F, HasCtor, true >
struct  ValueType< T, F, true, false >
struct  StaticCastSelectorClass
struct  StaticCastSelectorClass< From, To, sizeof(int)>
struct  StaticCastSelector
struct  OverridableAttachedType
struct  QmlAttached
struct  QmlAttached< T, std::void_t< typename OverridableAttachedType< T, typename T::QmlAttachedType >::Type >, false >
struct  QmlAttached< T, std::void_t< decltype(T::qmlAttachedProperties)>, true >
struct  QmlAttachedAccessor
struct  RegisterType
struct  RegisterTypeAndRevisions
struct  RegisterInterface
struct  RegisterAutoParent
struct  RegisterSingletonType
struct  RegisterSingletonTypeAndRevisions
struct  RegisterCompositeType
struct  RegisterCompositeSingletonType
struct  RegisterSequentialContainer
struct  RegisterSequentialContainerAndRevisions
struct  AOTTrackedLocalsStorage
struct  AOTCompiledContext
struct  AOTCompiledFunction
struct  CachedQmlUnit
struct  RegisterQmlUnitCacheHook
struct  SingletonInstanceFunctor
struct  QmlExtended
struct  QmlExtendedNamespace
struct  QmlResolved
struct  QmlUncreatable
struct  QmlAnonymous
struct  QmlSingleton
struct  QmlSequence
struct  QmlInterface
struct  StaticMetaObject
struct  StaticMetaObject< T, std::void_t< decltype(T::staticMetaObject)> >
struct  QmlMetaType
struct  QmlMetaType< void >
struct  LookupNotInitialized
struct  ObjectPropertyQmlData
struct  FallbackPropertyQmlData
struct  OverridableAttachedType< T, QQmlComponentAttached >
struct  OverridableAttachedType< QQmlComponent, QQmlComponentAttached >

Typedefs

template<typename A>
using QQmlAttachedPropertiesFunc = A *(*)(QObject *)
template<typename T, typename Marker>
using QmlTypeHasMarker = std::is_same<T, typename QmlMarkerFunction<Marker>::ClassType>
using CreateIntoFunction = void (*)(void *, void *)
using CreateSingletonFunction = QObject *(*)(QQmlEngine *, QJSEngine *)
using CreateParentFunction = QObject *(*)(QObject *)
using CreateValueTypeFunction = QVariant (*)(const QJSValue &)
typedef AutoParentResult(* AutoParentFunction) (QObject *object, QObject *parent)
typedef const CachedQmlUnit *(* QmlUnitCacheLookupFunction) (const QUrl &url)
using QmlContextPropertyGetter = QV4::ReturnedValue (*)(QV4::Lookup *lookup, QV4::ExecutionEngine *engine, QV4::Value *thisObject)

Enumerations

enum class  SingletonConstructionMode { None , Constructor , Factory , FactoryWrapper }
enum  AutoParentResult { Parented , IncompatibleObject , IncompatibleParent }
enum class  ValueTypeCreationMethod { None , Construct , Structured }
enum  RegistrationType {
  TypeRegistration = 0 , InterfaceRegistration = 1 , AutoParentRegistration = 2 , SingletonRegistration = 3 ,
  CompositeRegistration = 4 , CompositeSingletonRegistration = 5 , QmlUnitCacheHookRegistration = 6 , TypeAndRevisionsRegistration = 7 ,
  SingletonAndRevisionsRegistration = 8 , SequentialContainerRegistration = 9 , SequentialContainerAndRevisionsRegistration = 10
}
enum  QmlRegistrationWarning { UnconstructibleType , UnconstructibleSingleton , NonQObjectWithAtached }
enum class  PropertyResult {
  OK , NeedsInit , Deleted , OK ,
  NeedsInit , Deleted
}
enum class  ObjectLookupResult {
  Failure , Object , Fallback , Failure ,
  Object , Fallback
}
enum class  LookupType { Concrete , Variant , Concrete , Variant }
enum  MatchScore { NoMatch , ExactMatch , NoMatch , ExactMatch }
enum class  PropertyResult {
  OK , NeedsInit , Deleted , OK ,
  NeedsInit , Deleted
}
enum class  ObjectLookupResult {
  Failure , Object , Fallback , Failure ,
  Object , Fallback
}
enum class  LookupType { Concrete , Variant , Concrete , Variant }
enum  MatchScore { NoMatch , ExactMatch , NoMatch , ExactMatch }

Functions

double jsExponentiate (double base, double exponent)
void Q_QML_EXPORT qdeclarativeelement_destructor (QObject *)
template<typename T, typename WrapperT>
constexpr SingletonConstructionMode singletonConstructionMode ()
template<typename T>
void createInto (void *memory, void *)
template<typename T, typename WrapperT, SingletonConstructionMode Mode>
QObjectcreateSingletonInstance (QQmlEngine *q, QJSEngine *j)
template<typename T>
QObjectcreateParent (QObject *p)
template<typename T>
QQmlAttachedPropertiesFunc< QObjectattachedPropertiesFunc ()
template<typename T>
const QMetaObjectattachedPropertiesMetaObject ()
int Q_QML_EXPORT qmlregister (RegistrationType, void *)
void Q_QML_EXPORT qmlunregister (RegistrationType, quintptr)
static int indexOfOwnClassInfo (const QMetaObject *metaObject, const char *key, int startOffset=-1)
const char * classInfo (const QMetaObject *metaObject, const char *key)
QTypeRevision revisionClassInfo (const QMetaObject *metaObject, const char *key, QTypeRevision defaultValue=QTypeRevision())
Q_QML_EXPORT QList< QTypeRevisionrevisionClassInfos (const QMetaObject *metaObject, const char *key)
bool boolClassInfo (const QMetaObject *metaObject, const char *key, bool defaultValue=false)
template<typename T, typename E, typename WrapperT = T>
void qmlRegisterSingletonAndRevisions (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QList< int > *qmlTypeIds, const QMetaObject *extension)
template<typename T, typename E>
void qmlRegisterTypeAndRevisions (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QList< int > *qmlTypeIds, const QMetaObject *extension, bool forceAnonymous=false)
template<typename T>
void qmlRegisterSequenceAndRevisions (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QList< int > *qmlTypeIds)
template<>
void Q_QML_EXPORT qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QList< int > *qmlTypeIds, const QMetaObject *, bool)
constexpr QtPrivate::QMetaTypeInterface metaTypeForNamespace (const QtPrivate::QMetaTypeInterface::MetaObjectFn &metaObjectFunction, const char *name)
Q_QML_EXPORT QObjectqmlExtendedObject (QObject *, int)
Q_QML_EXPORT void qmlRegistrationWarning (QmlRegistrationWarning warning, QMetaType type)
Q_QML_EXPORT QMetaType compositeMetaType (QV4::ExecutableCompilationUnit *unit, int elementNameId)
Q_QML_EXPORT QMetaType compositeMetaType (QV4::ExecutableCompilationUnit *unit, const QString &elementName)
Q_QML_EXPORT QMetaType compositeListMetaType (QV4::ExecutableCompilationUnit *unit, int elementNameId)
Q_QML_EXPORT QMetaType compositeListMetaType (QV4::ExecutableCompilationUnit *unit, const QString &elementName)
template<>
void qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QList< int > *qmlTypeIds, const QMetaObject *extension, bool)
static QQmlPropertyCapturepropertyCapture (const AOTCompiledContext *aotContext)
static bool markPointer (const QVariant &element, QV4::MarkStack *markStack)
static void iterateVariant (const QVariant &element, std::vector< QVariant > *elements)
static void captureFallbackProperty (QObject *object, int coreIndex, int notifyIndex, bool isConstant, const AOTCompiledContext *aotContext)
static void captureObjectProperty (QObject *object, const QQmlPropertyCache *propertyCache, const QQmlPropertyData *property, const AOTCompiledContext *aotContext)
static bool inherits (const QQmlPropertyCache *descendent, const QQmlPropertyCache *ancestor)
template<bool StrictType>
ObjectPropertyQmlData findObjectPropertyQmlData (QV4::Lookup *lookup, QObject *object)
template<bool StrictType = false>
PropertyResult loadObjectProperty (QV4::Lookup *lookup, QObject *object, void *target, const AOTCompiledContext *aotContext)
template<bool StrictType = false>
PropertyResult writeBackObjectProperty (QV4::Lookup *lookup, QObject *object, void *source)
static FallbackPropertyQmlData findFallbackPropertyQmlData (QV4::Lookup *lookup, QObject *object)
static PropertyResult loadFallbackProperty (QV4::Lookup *lookup, QObject *object, void *target, const AOTCompiledContext *aotContext)
static PropertyResult writeBackFallbackProperty (QV4::Lookup *lookup, QObject *object, void *source)
PropertyResult loadObjectAsVariant (QV4::Lookup *lookup, QObject *object, void *target, const AOTCompiledContext *aotContext)
PropertyResult writeBackObjectAsVariant (QV4::Lookup *lookup, QObject *object, void *source)
PropertyResult loadFallbackAsVariant (QV4::Lookup *lookup, QObject *object, void *target, const AOTCompiledContext *aotContext)
PropertyResult writeBackFallbackAsVariant (QV4::Lookup *lookup, QObject *object, void *source)
template<bool StrictType, typename Op>
static PropertyResult changeObjectProperty (QV4::Lookup *lookup, QObject *object, Op op)
template<bool StrictType = false>
static PropertyResult resetObjectProperty (QV4::Lookup *lookup, QObject *object, QV4::ExecutionEngine *v4)
template<bool StrictType = false>
static PropertyResult storeObjectProperty (QV4::Lookup *lookup, QObject *object, void *value)
template<typename Op>
static PropertyResult changeFallbackProperty (QV4::Lookup *lookup, QObject *object, Op op)
static PropertyResult storeFallbackProperty (QV4::Lookup *lookup, QObject *object, void *value)
static PropertyResult resetFallbackProperty (QV4::Lookup *lookup, QObject *object, QV4::ExecutionEngine *v4)
static bool isEnumUnderlyingType (QMetaType enumType, QMetaType numberType)
static bool canHoldVoid (QMetaType type)
static bool isTypeCompatible (QMetaType source, QMetaType target)
static PropertyResult storeObjectAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *lookup, QObject *object, void *value)
static PropertyResult storeFallbackAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *lookup, QObject *object, void *value)
template<QV4::Lookup::Call FallbackCall>
static ObjectLookupResult initObjectLookup (const AOTCompiledContext *aotContext, QV4::Lookup *lookup, QObject *object)
template<QV4::Lookup::Call ObjectCall, QV4::Lookup::Call FallbackCall, LookupType Type>
void initObjectLookup (const AOTCompiledContext *aotContext, uint index, QObject *object)
static void initValueLookup (QV4::Lookup *lookup, QV4::ExecutableCompilationUnit *compilationUnit, const QMetaObject *metaObject)
static bool isUndefined (const void *value, QMetaType type)
static QMetaType jsTypedFunctionArgument (const QQmlType &type, const QV4::CompiledData::ParameterType &parameter)
static bool callQObjectMethodWithTypes (QV4::ExecutionEngine *engine, QV4::Lookup *lookup, QObject *thisObject, void **args, QMetaType *types, int argc)
static bool callQObjectMethodAsVariant (QV4::ExecutionEngine *engine, QV4::Lookup *lookup, QObject *thisObject, void **args, int argc)
static bool callQObjectMethod (QV4::ExecutionEngine *engine, QV4::Lookup *lookup, QObject *thisObject, void **args, int argc)
static bool callArrowFunction (QV4::ExecutionEngine *engine, QV4::ArrowFunction *function, QObject *thisObject, void **args, int argc)
static void throwIsNotAFunctionError (const AOTCompiledContext *aotContext, QV4::Lookup *lookup, const QString &object)
static MatchScore resolveQObjectMethodOverload (QV4::QObjectMethod *method, QV4::Lookup *lookup, int relativeMethodIndex)
static bool tryEnsureMethodsCache (QV4::QObjectMethod *method, QObject *object)
template<QV4::Lookup::Call call>
static void initTypeWrapperLookup (const AOTCompiledContext *context, QV4::Lookup *lookup, uint importNamespace)
static PropertyResult storeValueProperty (QV4::Lookup *lookup, const QMetaObject *metaObject, void *target, void *value)
static PropertyResult resetValueProperty (QV4::Lookup *lookup, const QMetaObject *metaObject, void *target, QV4::ExecutionEngine *v4)
static PropertyResult storeValueAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *lookup, const QMetaObject *metaObject, void *target, void *value)
template<LookupType Type>
void initValueLookup (const AOTCompiledContext *aotContext, uint index, const QMetaObject *metaObject)
template<>
void qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QList< int > *qmlTypeIds, const QMetaObject *extension, bool)

Typedef Documentation

◆ AutoParentFunction

typedef AutoParentResult(* QQmlPrivate::AutoParentFunction) (QObject *object, QObject *parent)

Definition at line 442 of file qqmlprivate.h.

◆ CreateIntoFunction

Definition at line 199 of file qqmlprivate.h.

◆ CreateParentFunction

Definition at line 201 of file qqmlprivate.h.

◆ CreateSingletonFunction

Definition at line 200 of file qqmlprivate.h.

◆ CreateValueTypeFunction

Definition at line 202 of file qqmlprivate.h.

◆ QmlContextPropertyGetter

◆ QmlTypeHasMarker

template<typename T, typename Marker>
using QQmlPrivate::QmlTypeHasMarker = std::is_same<T, typename QmlMarkerFunction<Marker>::ClassType>

Definition at line 176 of file qqmlprivate.h.

◆ QmlUnitCacheLookupFunction

typedef const CachedQmlUnit *(* QQmlPrivate::QmlUnitCacheLookupFunction) (const QUrl &url)

Definition at line 840 of file qqmlprivate.h.

◆ QQmlAttachedPropertiesFunc

template<typename A>
using QQmlPrivate::QQmlAttachedPropertiesFunc = A *(*)(QObject *)

Definition at line 49 of file qqmlprivate.h.

Enumeration Type Documentation

◆ AutoParentResult

Enumerator
Parented 
IncompatibleObject 
IncompatibleParent 

Definition at line 441 of file qqmlprivate.h.

◆ LookupType [1/2]

enum class QQmlPrivate::LookupType
strong
Enumerator
Concrete 
Variant 
Concrete 
Variant 

Definition at line 1774 of file qqml.cpp.

◆ LookupType [2/2]

enum class QQmlPrivate::LookupType
strong
Enumerator
Concrete 
Variant 
Concrete 
Variant 

Definition at line 1774 of file qqml.cpp.

◆ MatchScore [1/2]

Enumerator
NoMatch 
ExactMatch 
NoMatch 
ExactMatch 

Definition at line 2281 of file qqml.cpp.

◆ MatchScore [2/2]

Enumerator
NoMatch 
ExactMatch 
NoMatch 
ExactMatch 

Definition at line 2281 of file qqml.cpp.

◆ ObjectLookupResult [1/2]

Enumerator
Failure 
Object 
Fallback 
Failure 
Object 
Fallback 

Definition at line 1704 of file qqml.cpp.

◆ ObjectLookupResult [2/2]

Enumerator
Failure 
Object 
Fallback 
Failure 
Object 
Fallback 

Definition at line 1704 of file qqml.cpp.

◆ PropertyResult [1/2]

enum class QQmlPrivate::PropertyResult
strong
Enumerator
OK 
NeedsInit 
Deleted 
OK 
NeedsInit 
Deleted 

Definition at line 1324 of file qqml.cpp.

◆ PropertyResult [2/2]

enum class QQmlPrivate::PropertyResult
strong
Enumerator
OK 
NeedsInit 
Deleted 
OK 
NeedsInit 
Deleted 

Definition at line 1324 of file qqml.cpp.

◆ QmlRegistrationWarning

Enumerator
UnconstructibleType 
UnconstructibleSingleton 
NonQObjectWithAtached 

Definition at line 1273 of file qqmlprivate.h.

◆ RegistrationType

Enumerator
TypeRegistration 
InterfaceRegistration 
AutoParentRegistration 
SingletonRegistration 
CompositeRegistration 
CompositeSingletonRegistration 
QmlUnitCacheHookRegistration 
TypeAndRevisionsRegistration 
SingletonAndRevisionsRegistration 
SequentialContainerRegistration 
SequentialContainerAndRevisionsRegistration 

Definition at line 846 of file qqmlprivate.h.

◆ SingletonConstructionMode

Enumerator
None 
Constructor 
Factory 
FactoryWrapper 

Definition at line 127 of file qqmlprivate.h.

◆ ValueTypeCreationMethod

Enumerator
None 
Construct 
Structured 

Definition at line 444 of file qqmlprivate.h.

Function Documentation

◆ attachedPropertiesFunc()

template<typename T>
QQmlAttachedPropertiesFunc< QObject > QQmlPrivate::attachedPropertiesFunc ( )
inline

Definition at line 430 of file qqmlprivate.h.

◆ attachedPropertiesMetaObject()

template<typename T>
const QMetaObject * QQmlPrivate::attachedPropertiesMetaObject ( )
inline

Definition at line 436 of file qqmlprivate.h.

◆ boolClassInfo()

bool QQmlPrivate::boolClassInfo ( const QMetaObject * metaObject,
const char * key,
bool defaultValue = false )
inline

Definition at line 916 of file qqmlprivate.h.

◆ callArrowFunction()

bool QQmlPrivate::callArrowFunction ( QV4::ExecutionEngine * engine,
QV4::ArrowFunction * function,
QObject * thisObject,
void ** args,
int argc )
static

Definition at line 2204 of file qqml.cpp.

◆ callQObjectMethod()

bool QQmlPrivate::callQObjectMethod ( QV4::ExecutionEngine * engine,
QV4::Lookup * lookup,
QObject * thisObject,
void ** args,
int argc )
static

Definition at line 2166 of file qqml.cpp.

◆ callQObjectMethodAsVariant()

bool QQmlPrivate::callQObjectMethodAsVariant ( QV4::ExecutionEngine * engine,
QV4::Lookup * lookup,
QObject * thisObject,
void ** args,
int argc )
static

Definition at line 2142 of file qqml.cpp.

◆ callQObjectMethodWithTypes()

bool QQmlPrivate::callQObjectMethodWithTypes ( QV4::ExecutionEngine * engine,
QV4::Lookup * lookup,
QObject * thisObject,
void ** args,
QMetaType * types,
int argc )
static

Definition at line 2131 of file qqml.cpp.

◆ canHoldVoid()

bool QQmlPrivate::canHoldVoid ( QMetaType type)
static

Definition at line 1598 of file qqml.cpp.

◆ captureFallbackProperty()

void QQmlPrivate::captureFallbackProperty ( QObject * object,
int coreIndex,
int notifyIndex,
bool isConstant,
const AOTCompiledContext * aotContext )
static

Definition at line 1293 of file qqml.cpp.

◆ captureObjectProperty()

void QQmlPrivate::captureObjectProperty ( QObject * object,
const QQmlPropertyCache * propertyCache,
const QQmlPropertyData * property,
const AOTCompiledContext * aotContext )
static

Definition at line 1304 of file qqml.cpp.

◆ changeFallbackProperty()

template<typename Op>
PropertyResult QQmlPrivate::changeFallbackProperty ( QV4::Lookup * lookup,
QObject * object,
Op op )
static

Definition at line 1522 of file qqml.cpp.

◆ changeObjectProperty()

template<bool StrictType, typename Op>
PropertyResult QQmlPrivate::changeObjectProperty ( QV4::Lookup * lookup,
QObject * object,
Op op )
static

Definition at line 1485 of file qqml.cpp.

◆ classInfo()

const char * QQmlPrivate::classInfo ( const QMetaObject * metaObject,
const char * key )
inline

Definition at line 900 of file qqmlprivate.h.

◆ compositeListMetaType() [1/2]

QMetaType QQmlPrivate::compositeListMetaType ( QV4::ExecutableCompilationUnit * unit,
const QString & elementName )

Definition at line 218 of file qqml.cpp.

◆ compositeListMetaType() [2/2]

QMetaType QQmlPrivate::compositeListMetaType ( QV4::ExecutableCompilationUnit * unit,
int elementNameId )

Definition at line 212 of file qqml.cpp.

◆ compositeMetaType() [1/2]

QMetaType QQmlPrivate::compositeMetaType ( QV4::ExecutableCompilationUnit * unit,
const QString & elementName )

Definition at line 204 of file qqml.cpp.

◆ compositeMetaType() [2/2]

QMetaType QQmlPrivate::compositeMetaType ( QV4::ExecutableCompilationUnit * unit,
int elementNameId )

Definition at line 198 of file qqml.cpp.

◆ createInto()

template<typename T>
void QQmlPrivate::createInto ( void * memory,
void *  )

Definition at line 179 of file qqmlprivate.h.

◆ createParent()

template<typename T>
QObject * QQmlPrivate::createParent ( QObject * p)

Definition at line 197 of file qqmlprivate.h.

◆ createSingletonInstance()

template<typename T, typename WrapperT, SingletonConstructionMode Mode>
QObject * QQmlPrivate::createSingletonInstance ( QQmlEngine * q,
QJSEngine * j )

Definition at line 182 of file qqmlprivate.h.

References Constructor, Factory, and FactoryWrapper.

◆ findFallbackPropertyQmlData()

FallbackPropertyQmlData QQmlPrivate::findFallbackPropertyQmlData ( QV4::Lookup * lookup,
QObject * object )
static

Definition at line 1387 of file qqml.cpp.

◆ findObjectPropertyQmlData()

template<bool StrictType>
ObjectPropertyQmlData QQmlPrivate::findObjectPropertyQmlData ( QV4::Lookup * lookup,
QObject * object )

Definition at line 1333 of file qqml.cpp.

◆ indexOfOwnClassInfo()

int QQmlPrivate::indexOfOwnClassInfo ( const QMetaObject * metaObject,
const char * key,
int startOffset = -1 )
static

Definition at line 884 of file qqmlprivate.h.

◆ inherits()

bool QQmlPrivate::inherits ( const QQmlPropertyCache * descendent,
const QQmlPropertyCache * ancestor )
static

Definition at line 1315 of file qqml.cpp.

◆ initObjectLookup() [1/2]

template<QV4::Lookup::Call FallbackCall>
ObjectLookupResult QQmlPrivate::initObjectLookup ( const AOTCompiledContext * aotContext,
QV4::Lookup * lookup,
QObject * object )
static

Definition at line 1711 of file qqml.cpp.

References Failure, Fallback, and Object.

◆ initObjectLookup() [2/2]

template<QV4::Lookup::Call ObjectCall, QV4::Lookup::Call FallbackCall, LookupType Type>
void QQmlPrivate::initObjectLookup ( const AOTCompiledContext * aotContext,
uint index,
QObject * object )

Definition at line 1776 of file qqml.cpp.

References Failure, Fallback, Object, and Variant.

◆ initTypeWrapperLookup()

template<QV4::Lookup::Call call>
void QQmlPrivate::initTypeWrapperLookup ( const AOTCompiledContext * context,
QV4::Lookup * lookup,
uint importNamespace )
static

Definition at line 2659 of file qqml.cpp.

◆ initValueLookup() [1/2]

template<LookupType Type>
void QQmlPrivate::initValueLookup ( const AOTCompiledContext * aotContext,
uint index,
const QMetaObject * metaObject )

Definition at line 3126 of file qqml.cpp.

References Variant.

◆ initValueLookup() [2/2]

void QQmlPrivate::initValueLookup ( QV4::Lookup * lookup,
QV4::ExecutableCompilationUnit * compilationUnit,
const QMetaObject * metaObject )
static

Definition at line 1803 of file qqml.cpp.

◆ isEnumUnderlyingType()

bool QQmlPrivate::isEnumUnderlyingType ( QMetaType enumType,
QMetaType numberType )
static

Definition at line 1563 of file qqml.cpp.

◆ isTypeCompatible()

bool QQmlPrivate::isTypeCompatible ( QMetaType source,
QMetaType target )
static

Definition at line 1606 of file qqml.cpp.

◆ isUndefined()

bool QQmlPrivate::isUndefined ( const void * value,
QMetaType type )
static

Definition at line 1925 of file qqml.cpp.

◆ iterateVariant()

void QQmlPrivate::iterateVariant ( const QVariant & element,
std::vector< QVariant > * elements )
static

Definition at line 1216 of file qqml.cpp.

◆ jsExponentiate()

double QQmlPrivate::jsExponentiate ( double base,
double exponent )
inline
Since
6.4

Performs JavaScript's Number::exponentiate operation on base and exponent, and returns the result.

See https://tc39.es/ecma262/multipage/ecmascript-data-types-and-values.html#sec-numeric-types-number-exponentiate

Definition at line 966 of file qjsprimitivevalue.h.

◆ jsTypedFunctionArgument()

QMetaType QQmlPrivate::jsTypedFunctionArgument ( const QQmlType & type,
const QV4::CompiledData::ParameterType & parameter )
static

Definition at line 2125 of file qqml.cpp.

◆ loadFallbackAsVariant()

PropertyResult QQmlPrivate::loadFallbackAsVariant ( QV4::Lookup * lookup,
QObject * object,
void * target,
const AOTCompiledContext * aotContext )

Definition at line 1459 of file qqml.cpp.

◆ loadFallbackProperty()

PropertyResult QQmlPrivate::loadFallbackProperty ( QV4::Lookup * lookup,
QObject * object,
void * target,
const AOTCompiledContext * aotContext )
static

Definition at line 1403 of file qqml.cpp.

◆ loadObjectAsVariant()

PropertyResult QQmlPrivate::loadObjectAsVariant ( QV4::Lookup * lookup,
QObject * object,
void * target,
const AOTCompiledContext * aotContext )

Definition at line 1436 of file qqml.cpp.

◆ loadObjectProperty()

template<bool StrictType = false>
PropertyResult QQmlPrivate::loadObjectProperty ( QV4::Lookup * lookup,
QObject * object,
void * target,
const AOTCompiledContext * aotContext )

Definition at line 1352 of file qqml.cpp.

◆ markPointer()

bool QQmlPrivate::markPointer ( const QVariant & element,
QV4::MarkStack * markStack )
static

Definition at line 1206 of file qqml.cpp.

◆ metaTypeForNamespace()

QtPrivate::QMetaTypeInterface QQmlPrivate::metaTypeForNamespace ( const QtPrivate::QMetaTypeInterface::MetaObjectFn & metaObjectFunction,
const char * name )
constexpr

Definition at line 1247 of file qqmlprivate.h.

◆ propertyCapture()

QQmlPropertyCapture * QQmlPrivate::propertyCapture ( const AOTCompiledContext * aotContext)
static

Definition at line 1170 of file qqml.cpp.

◆ qdeclarativeelement_destructor()

void QQmlPrivate::qdeclarativeelement_destructor ( QObject * o)

Definition at line 204 of file qqmlengine.cpp.

◆ qmlExtendedObject()

QObject * QQmlPrivate::qmlExtendedObject ( QObject * object,
int index )

Definition at line 153 of file qqml.cpp.

◆ qmlregister()

int QQmlPrivate::qmlregister ( RegistrationType type,
void * data )

Definition at line 931 of file qqml.cpp.

◆ qmlRegisterSequenceAndRevisions()

template<typename T>
void QQmlPrivate::qmlRegisterSequenceAndRevisions ( const char * uri,
int versionMajor,
const QMetaObject * classInfoMetaObject,
QList< int > * qmlTypeIds )

Definition at line 1225 of file qqmlprivate.h.

References SequentialContainerAndRevisionsRegistration.

◆ qmlRegisterSingletonAndRevisions()

template<typename T, typename E, typename WrapperT = T>
void QQmlPrivate::qmlRegisterSingletonAndRevisions ( const char * uri,
int versionMajor,
const QMetaObject * classInfoMetaObject,
QList< int > * qmlTypeIds,
const QMetaObject * extension )

Definition at line 1152 of file qqmlprivate.h.

References SingletonAndRevisionsRegistration.

◆ qmlRegisterTypeAndRevisions()

template<typename T, typename E>
void QQmlPrivate::qmlRegisterTypeAndRevisions ( const char * uri,
int versionMajor,
const QMetaObject * classInfoMetaObject,
QList< int > * qmlTypeIds,
const QMetaObject * extension,
bool forceAnonymous = false )

Definition at line 1180 of file qqmlprivate.h.

References TypeAndRevisionsRegistration.

◆ qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void >() [1/3]

template<>
void Q_QML_EXPORT QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > ( const char * uri,
int versionMajor,
const QMetaObject * classInfoMetaObject,
QList< int > * qmlTypeIds,
const QMetaObject * extension,
bool  )

Definition at line 1117 of file qqml.cpp.

◆ qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void >() [2/3]

template<>
void QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > ( const char * uri,
int versionMajor,
const QMetaObject * classInfoMetaObject,
QList< int > * qmlTypeIds,
const QMetaObject * extension,
bool  )

Definition at line 1117 of file qqml.cpp.

◆ qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void >() [3/3]

template<>
void QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > ( const char * uri,
int versionMajor,
const QMetaObject * classInfoMetaObject,
QList< int > * qmlTypeIds,
const QMetaObject * extension,
bool  )

Definition at line 1117 of file qqml.cpp.

◆ qmlRegistrationWarning()

void QQmlPrivate::qmlRegistrationWarning ( QQmlPrivate::QmlRegistrationWarning warning,
QMetaType type )

Definition at line 172 of file qqml.cpp.

◆ qmlunregister()

void QQmlPrivate::qmlunregister ( RegistrationType type,
quintptr data )

Definition at line 1029 of file qqml.cpp.

◆ resetFallbackProperty()

PropertyResult QQmlPrivate::resetFallbackProperty ( QV4::Lookup * lookup,
QObject * object,
QV4::ExecutionEngine * v4 )
static

Definition at line 1545 of file qqml.cpp.

◆ resetObjectProperty()

template<bool StrictType = false>
PropertyResult QQmlPrivate::resetObjectProperty ( QV4::Lookup * lookup,
QObject * object,
QV4::ExecutionEngine * v4 )
static

Definition at line 1499 of file qqml.cpp.

◆ resetValueProperty()

PropertyResult QQmlPrivate::resetValueProperty ( QV4::Lookup * lookup,
const QMetaObject * metaObject,
void * target,
QV4::ExecutionEngine * v4 )
static

Definition at line 3050 of file qqml.cpp.

References OK.

◆ resolveQObjectMethodOverload()

MatchScore QQmlPrivate::resolveQObjectMethodOverload ( QV4::QObjectMethod * method,
QV4::Lookup * lookup,
int relativeMethodIndex )
static

Definition at line 2283 of file qqml.cpp.

References ExactMatch, and NoMatch.

◆ revisionClassInfo()

QTypeRevision QQmlPrivate::revisionClassInfo ( const QMetaObject * metaObject,
const char * key,
QTypeRevision defaultValue = QTypeRevision() )
inline

Definition at line 905 of file qqmlprivate.h.

◆ revisionClassInfos()

QList< QTypeRevision > QQmlPrivate::revisionClassInfos ( const QMetaObject * metaObject,
const char * key )

Definition at line 1061 of file qqml.cpp.

◆ singletonConstructionMode()

template<typename T, typename WrapperT>
SingletonConstructionMode QQmlPrivate::singletonConstructionMode ( )
constexpr

Definition at line 152 of file qqmlprivate.h.

References Constructor, Factory, FactoryWrapper, and None.

◆ storeFallbackAsVariant()

PropertyResult QQmlPrivate::storeFallbackAsVariant ( QV4::ExecutionEngine * v4,
QV4::Lookup * lookup,
QObject * object,
void * value )
static

Definition at line 1676 of file qqml.cpp.

◆ storeFallbackProperty()

PropertyResult QQmlPrivate::storeFallbackProperty ( QV4::Lookup * lookup,
QObject * object,
void * value )
static

Definition at line 1536 of file qqml.cpp.

◆ storeObjectAsVariant()

PropertyResult QQmlPrivate::storeObjectAsVariant ( QV4::ExecutionEngine * v4,
QV4::Lookup * lookup,
QObject * object,
void * value )
static

Definition at line 1644 of file qqml.cpp.

◆ storeObjectProperty()

template<bool StrictType = false>
PropertyResult QQmlPrivate::storeObjectProperty ( QV4::Lookup * lookup,
QObject * object,
void * value )
static

Definition at line 1514 of file qqml.cpp.

◆ storeValueAsVariant()

PropertyResult QQmlPrivate::storeValueAsVariant ( QV4::ExecutionEngine * v4,
QV4::Lookup * lookup,
const QMetaObject * metaObject,
void * target,
void * value )
static

Definition at line 3068 of file qqml.cpp.

References NeedsInit.

◆ storeValueProperty()

PropertyResult QQmlPrivate::storeValueProperty ( QV4::Lookup * lookup,
const QMetaObject * metaObject,
void * target,
void * value )
static

Definition at line 3040 of file qqml.cpp.

References OK.

◆ throwIsNotAFunctionError()

void QQmlPrivate::throwIsNotAFunctionError ( const AOTCompiledContext * aotContext,
QV4::Lookup * lookup,
const QString & object )
static

Definition at line 2249 of file qqml.cpp.

◆ tryEnsureMethodsCache()

bool QQmlPrivate::tryEnsureMethodsCache ( QV4::QObjectMethod * method,
QObject * object )
static

Definition at line 2312 of file qqml.cpp.

◆ writeBackFallbackAsVariant()

PropertyResult QQmlPrivate::writeBackFallbackAsVariant ( QV4::Lookup * lookup,
QObject * object,
void * source )

Definition at line 1472 of file qqml.cpp.

◆ writeBackFallbackProperty()

PropertyResult QQmlPrivate::writeBackFallbackProperty ( QV4::Lookup * lookup,
QObject * object,
void * source )
static

Definition at line 1423 of file qqml.cpp.

◆ writeBackObjectAsVariant()

PropertyResult QQmlPrivate::writeBackObjectAsVariant ( QV4::Lookup * lookup,
QObject * object,
void * source )

Definition at line 1448 of file qqml.cpp.

◆ writeBackObjectProperty()

template<bool StrictType = false>
PropertyResult QQmlPrivate::writeBackObjectProperty ( QV4::Lookup * lookup,
QObject * object,
void * source )

Definition at line 1370 of file qqml.cpp.