Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqml.h File Reference

(d374a98682c8f8e3601af8f643e5ad1baa383147)

#include <QtQml/qqmlprivate.h>
#include <QtQml/qjsvalue.h>
#include <QtQml/qqmlregistration.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qmetacontainer.h>
#include <QtCore/qversionnumber.h>
+ Include dependency graph for qqml.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QQmlTypeNotAvailable
 
struct  QmlTypeAndRevisionsRegistration< T, Resolved, Extended, false, false, false, false >
 
struct  QmlTypeAndRevisionsRegistration< T, Resolved, Extended, false, false, false, true >
 
struct  QmlTypeAndRevisionsRegistration< T, Resolved, void, false, false, true, true >
 
struct  QmlTypeAndRevisionsRegistration< T, Resolved, Extended, true, false, false, false >
 
struct  QmlTypeAndRevisionsRegistration< T, Resolved, Extended, true, false, false, true >
 
struct  QmlTypeAndRevisionsRegistration< T, Resolved, void, false, true, false, false >
 

Macros

#define QML_VERSION   0x020000
 
#define QML_VERSION_STR   "2.0"
 
#define QML_DECLARE_TYPE(TYPE)
 
#define QML_DECLARE_TYPE_HASMETATYPE(TYPE)    Q_DECLARE_METATYPE(QQmlListProperty<TYPE>)
 
#define QML_DECLARE_INTERFACE(INTERFACE)    QML_DECLARE_TYPE(INTERFACE)
 
#define QML_DECLARE_INTERFACE_HASMETATYPE(INTERFACE)    QML_DECLARE_TYPE_HASMETATYPE(INTERFACE)
 
#define QML_DECLARE_TYPEINFO(TYPE, FLAGS)
 

Enumerations

enum  { QML_HAS_ATTACHED_PROPERTIES = 0x01 }
 
enum  QQmlModuleImportSpecialVersions : int { QQmlModuleImportModuleAny = -1 , QQmlModuleImportLatest = -1 , QQmlModuleImportAuto = -2 }
 

Functions

QT_BEGIN_NAMESPACE void Q_QML_EXPORT qmlClearTypeRegistrations ()
 
template<class T >
QQmlCustomParserqmlCreateCustomParser ()
 
template<typename T >
int qmlRegisterAnonymousType (const char *uri, int versionMajor)
 
template<typename T , int metaObjectRevisionMinor>
int qmlRegisterAnonymousType (const char *uri, int versionMajor)
 
template<typename T >
void qmlRegisterAnonymousTypesAndRevisions (const char *uri, int versionMajor)
 
int Q_QML_EXPORT qmlRegisterTypeNotAvailable (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &message)
 
template<typename T >
int qmlRegisterUncreatableType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
template<typename T , int metaObjectRevision>
int qmlRegisterUncreatableType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
template<typename T , typename E >
int qmlRegisterExtendedUncreatableType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
template<typename T , typename E , int metaObjectRevision>
int qmlRegisterExtendedUncreatableType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
Q_QML_EXPORT int qmlRegisterUncreatableMetaObject (const QMetaObject &staticMetaObject, const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
template<typename T >
int qmlRegisterType (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
template<typename T , int metaObjectRevision>
int qmlRegisterType (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
template<typename T , int metaObjectRevision>
int qmlRegisterRevision (const char *uri, int versionMajor, int versionMinor)
 
template<typename T , typename E >
int qmlRegisterExtendedType (const char *uri, int versionMajor)
 
template<typename T , typename E >
int qmlRegisterExtendedType (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
template<typename T >
int qmlRegisterInterface (const char *uri, int versionMajor)
 
template<typename T >
int qmlRegisterCustomType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, QQmlCustomParser *parser)
 
template<typename T , int metaObjectRevision>
int qmlRegisterCustomType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, QQmlCustomParser *parser)
 
template<typename T , typename E >
int qmlRegisterCustomExtendedType (const char *uri, int versionMajor, int versionMinor, const char *qmlName, QQmlCustomParser *parser)
 
Q_QML_EXPORT void qmlExecuteDeferred (QObject *)
 
Q_QML_EXPORT QQmlContextqmlContext (const QObject *)
 
Q_QML_EXPORT QQmlEngineqmlEngine (const QObject *)
 
Q_QML_EXPORT QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction (QObject *, const QMetaObject *)
 
Q_QML_EXPORT QObjectqmlAttachedPropertiesObject (QObject *, QQmlAttachedPropertiesFunc func, bool create=true)
 
Q_QML_EXPORT QObjectqmlExtendedObject (QObject *)
 
Q_QML_EXPORT bool qmlProtectModule (const char *uri, int majVersion)
 
Q_QML_EXPORT void qmlRegisterModule (const char *uri, int versionMajor, int versionMinor)
 
Q_QML_EXPORT void qmlRegisterModuleImport (const char *uri, int moduleMajor, const char *import, int importMajor=QQmlModuleImportLatest, int importMinor=QQmlModuleImportLatest)
 
Q_QML_EXPORT void qmlUnregisterModuleImport (const char *uri, int moduleMajor, const char *import, int importMajor=QQmlModuleImportLatest, int importMinor=QQmlModuleImportLatest)
 
template<typename T >
QObjectqmlAttachedPropertiesObject (const QObject *obj, bool create=true)
 
template<typename F , typename std::enable_if< std::is_convertible< F, std::function< QJSValue(QQmlEngine *, QJSEngine *)> >::value, void >::type * = nullptr>
int qmlRegisterSingletonType (const char *uri, int versionMajor, int versionMinor, const char *typeName, F &&callback)
 
template<typename T , typename F , typename std::enable_if< std::is_convertible< F, std::function< QObject *(QQmlEngine *, QJSEngine *)> >::value, void >::type * = nullptr>
int qmlRegisterSingletonType (const char *uri, int versionMajor, int versionMinor, const char *typeName, F &&callback)
 
template<typename T >
auto qmlRegisterSingletonInstance (const char *uri, int versionMajor, int versionMinor, const char *typeName, T *cppObject) -> typename std::enable_if< std::is_base_of< QObject, T >::value, int >::type
 
int qmlRegisterSingletonType (const QUrl &url, const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
int qmlRegisterType (const QUrl &url, const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
template<typename Container >
int qmlRegisterAnonymousSequentialContainer (const char *uri, int versionMajor)
 
template<typename... T>
void qmlRegisterTypesAndRevisions (const char *uri, int versionMajor, QList< int > *qmlTypeIds)
 
void qmlRegisterNamespaceAndRevisions (const QMetaObject *metaObject, const char *uri, int versionMajor, QList< int > *qmlTypeIds, const QMetaObject *classInfoMetaObject, const QMetaObject *extensionMetaObject)
 
void qmlRegisterNamespaceAndRevisions (const QMetaObject *metaObject, const char *uri, int versionMajor, QList< int > *qmlTypeIds=nullptr, const QMetaObject *classInfoMetaObject=nullptr)
 
int Q_QML_EXPORT qmlTypeId (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 

Macro Definition Documentation

◆ QML_DECLARE_INTERFACE

#define QML_DECLARE_INTERFACE ( INTERFACE)     QML_DECLARE_TYPE(INTERFACE)

Definition at line 26 of file qqml.h.

◆ QML_DECLARE_INTERFACE_HASMETATYPE

#define QML_DECLARE_INTERFACE_HASMETATYPE ( INTERFACE)     QML_DECLARE_TYPE_HASMETATYPE(INTERFACE)

Definition at line 29 of file qqml.h.

◆ QML_DECLARE_TYPE

#define QML_DECLARE_TYPE ( TYPE)
Value:
Q_DECLARE_METATYPE(QQmlListProperty<TYPE>)
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
const char * TYPE

Definition at line 19 of file qqml.h.

◆ QML_DECLARE_TYPE_HASMETATYPE

#define QML_DECLARE_TYPE_HASMETATYPE ( TYPE)     Q_DECLARE_METATYPE(QQmlListProperty<TYPE>)

Definition at line 23 of file qqml.h.

◆ QML_DECLARE_TYPEINFO

#define QML_DECLARE_TYPEINFO ( TYPE,
FLAGS )
Value:
QT_BEGIN_NAMESPACE \
template <> \
class QQmlTypeInfo<TYPE > \
{ \
public: \
enum { \
}; \
}; \
@ hasAttachedProperties
Definition qqmlprivate.h:75
@ QML_HAS_ATTACHED_PROPERTIES
Definition qqml.h:33
const char * FLAGS

Definition at line 36 of file qqml.h.

◆ QML_VERSION

#define QML_VERSION   0x020000

Definition at line 16 of file qqml.h.

◆ QML_VERSION_STR

#define QML_VERSION_STR   "2.0"

Definition at line 17 of file qqml.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
QML_HAS_ATTACHED_PROPERTIES 

Definition at line 32 of file qqml.h.

◆ QQmlModuleImportSpecialVersions

Enumerator
QQmlModuleImportModuleAny 
QQmlModuleImportLatest 
QQmlModuleImportAuto 

Definition at line 647 of file qqml.h.

Function Documentation

◆ qmlAttachedPropertiesFunction()

Q_QML_EXPORT QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction ( QObject * object,
const QMetaObject * attachedMetaObject )

Definition at line 106 of file qqml.cpp.

References QQmlMetaType::attachedPropertiesFunc(), engine, QQmlEnginePrivate::get(), and qmlEngine().

Referenced by attachedObject(), and qmlAttachedPropertiesObject().

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

◆ qmlAttachedPropertiesObject() [1/2]

template<typename T >
QObject * qmlAttachedPropertiesObject ( const QObject * obj,
bool create = true )

Definition at line 663 of file qqml.h.

References create(), qmlAttachedPropertiesFunction(), and qmlAttachedPropertiesObject().

+ Here is the call graph for this function:

◆ qmlAttachedPropertiesObject() [2/2]

Q_QML_EXPORT QObject * qmlAttachedPropertiesObject ( QObject * object,
QQmlAttachedPropertiesFunc func,
bool create = true )

Definition at line 114 of file qqml.cpp.

References create(), QQmlData::get(), and resolveAttachedProperties().

Referenced by attachedObject(), QQmlBindPrivate::decodeBinding(), QQmlPropertyPrivate::initProperty(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QV4::QQmlTypeWrapper::object(), qmlAttachedPropertiesObject(), QV4::QQmlTypeWrapper::toVariant(), QV4::QQmlTypeWrapper::virtualGet(), and QV4::QQmlTypeWrapper::virtualPut().

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

◆ qmlClearTypeRegistrations()

QT_BEGIN_NAMESPACE void Q_QML_EXPORT qmlClearTypeRegistrations ( )

Definition at line 230 of file qqml.cpp.

References QQmlEnginePrivate::baseModulesUninitialized, QQmlMetaType::clearTypeRegistrations(), and qmlClearEnginePlugins().

Referenced by runTests(), and QQuickControlsTestUtils::QQuickStyleHelper::updateStyle().

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

◆ qmlContext()

Q_QML_EXPORT QQmlContext * qmlContext ( const QObject * obj)
related

Definition at line 75 of file qqml.cpp.

Referenced by QQuickPlatformColorDialog::QQuickPlatformColorDialog(), QQuickPlatformFileDialog::QQuickPlatformFileDialog(), QQuickPlatformFolderDialog::QQuickPlatformFolderDialog(), QQuickPlatformFontDialog::QQuickPlatformFontDialog(), QQuickPlatformMessageDialog::QQuickPlatformMessageDialog(), QV4::Script::Script(), QQuickLoaderPrivate::_q_sourceLoaded(), QQuickParentChange::actions(), QQuickAnchorChanges::actions(), QQuickPropertyChanges::actions(), QQmlWatcher::addWatch(), QQuickText::baseUrl(), QQuickTextEdit::baseUrl(), QQuickMenuPrivate::beginCreateItem(), QQuickMenuBarPrivate::beginCreateItem(), callWithContextObject(), callWithScopeObject(), QQuickPropertyChanges::changeExpression(), QQmlDelegateModel::classBegin(), QQuickPopup::classBegin(), QQuickRangeSlider::classBegin(), QQuickScrollBar::classBegin(), QQuickSpinBox::classBegin(), QDeclarativeGeoMapItemView::classBegin(), QQuickLoaderPrivate::clear(), QQmlBind::componentComplete(), QQuickTextEdit::componentComplete(), QQmlBinding::create(), createBindingInScope(), QQuickLoaderPrivate::createComponent(), QQuickItemViewPrivate::createComponentItem(), QQuickSwipePrivate::createDelegateItem(), QQuickFolderBreadcrumbBarPrivate::createDelegateItem(), createDimmer(), QQmlPropertyBinding::createFromScriptString(), QQuickSplitViewPrivate::createHandleItem(), QQuickPathViewPrivate::createHighlight(), QQuickIconLabelPrivate::createImage(), QQuickAbstractAnimationPrivate::createProperty(), QQmlJavaScriptExpression::createQmlBinding(), QQuickDialogButtonBoxPrivate::createStandardButton(), QQuickTableViewPrivate::createWrapperModel(), QQmlComponent::creationContext(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlBindPrivate::decodeBinding(), QQuickTextPrivate::ensureDoc(), QQmlJavaScriptExpression::evalFunction(), QQuickVisualTestUtils::findItem(), QV4::QObjectWrapper::findProperty(), QV4::QObjectWrapper::findProperty(), QQuickStackElement::fromString(), QQuick3DPhysicsHeightFieldManager::getHeightField(), QQuick3DPhysicsMeshManager::getMesh(), QV4::getPropertyFromImports(), QQuickListViewPrivate::getSectionItem(), QuickTestResult::grabImage(), QQuickFileDialogDelegatePrivate::highlightFile(), QQmlExpressionPrivate::init(), QQuickTumblerAttachedPrivate::init(), QQuickStackElement::initialize(), QQmlComponentPrivate::initializeObjectWithInitialProperties(), QQDMIncubationTask::initializeRequiredProperties(), QQmlPrivate::AOTCompiledContext::initLoadAttachedLookup(), QQmlPrivate::AOTCompiledContext::initLoadContextIdLookup(), QQuickContainer::isContent(), QQuickFolderBreadcrumbBar::isContent(), QQuickSplitView::isContent(), QQuickTextDocumentPrivate::load(), QQuickAnimatedImage::load(), QQuickBorderImage::load(), QQuickStackElement::load(), QQmlPrivate::AOTCompiledContext::loadContextIdLookup(), QQuickDragAttachedPrivate::loadPixmap(), QQuickImageBase::loadPixmap(), QQuickVectorImagePrivate::loadSvg(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QQmlContextWrapper::lookupScript(), QV4::QQmlContextWrapper::lookupType(), operator<<(), QQuickMediaPlayer::qmlSetSource(), QQuickSoundEffect::qmlSetSource(), QQmlXmlListModel::reload(), QQuickText::resetBaseUrl(), QQuickTextEdit::resetBaseUrl(), JavaScriptJob::run(), ValueLookupJob::run(), QuickTestImageObject::save(), QQmlDebugTranslationServicePrivate::sendTranslatableTextOccurrences(), QQuickLoader::setActive(), QQuick3DLoader::setActive(), QQuickPageIndicatorPrivate::setContextProperty(), QQuickItemView::setDelegate(), QQuickPathView::setDelegate(), QQuickRepeater::setDelegate(), QQuick3DRepeater::setDelegate(), QQmlComponentPrivate::setInitialProperties(), QV4::QmlIncubatorObject::setInitialState(), QQuickLoaderPrivate::setInitialState(), QQuickTextPrivate::setLineGeometry(), QQuickItemView::setModel(), QQuickPathView::setModel(), QQuickRepeater::setModel(), QQuick3DRepeater::setModel(), QQmlBind::setObject(), QQmlBind::setProperty(), QV4::QObjectWrapper::setQmlProperty(), QQuickWorkerScript::setSource(), QQuick3DRuntimeLoader::setSource(), QQuickFontLoader::setSource(), QQuick3DAmbientSound::setSource(), QQuick3DSpatialSound::setSource(), QQuickPdfDocument::setSource(), QQmlJavaScriptExpression::setupFunction(), QQuickTreeViewDelegatePrivate::toggleExpanded(), QQuick3DModel::translateMeshSource(), QQuickIconImagePrivate::updateIcon(), QQuickTextPrivate::updateLayout(), QQuick3DCustomMaterial::updateSpatialNode(), QQuick3DEffect::updateSpatialNode(), QQuick3DModel::updateSpatialNode(), QQuick3DTexture::updateSpatialNode(), QV4::QObjectWrapper::virtualGet(), QV4::QObjectWrapper::virtualGetOwnProperty(), QV4::QObjectWrapper::virtualPut(), QV4::QObjectWrapper::virtualResolveLookupGetter(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

◆ qmlCreateCustomParser()

template<class T >
QQmlCustomParser * qmlCreateCustomParser ( )

Definition at line 90 of file qqmlprivate.h.

◆ qmlEngine()

Q_QML_EXPORT QQmlEngine * qmlEngine ( const QObject * obj)
related

Definition at line 80 of file qqml.cpp.

Referenced by QQmlDataBlob::QQmlDataBlob(), QQmlInfo::~QQmlInfo(), QQuickLoaderPrivate::_q_sourceLoaded(), QQuickPropertyChanges::actions(), QQmlPreviewHandler::addEngine(), QQuickDesignerSupportProperties::allPropertyNames(), QQmlListModelParser::applyBindings(), QuickTestUtil::callerFile(), QuickTestUtil::callerLine(), QQuickWindowQmlImpl::classBegin(), QQmlTableModel::clear(), QQuickCanvasItem::componentComplete(), QTestRootObject::create(), createBindingInScope(), QQuickControlsTestUtils::ComponentCreator::createComponent(), QQmlTableModel::data(), QQmlDebugTranslationServiceImpl::engineAboutToBeAdded(), QQmlPreviewServiceImpl::engineAboutToBeAdded(), QQmlProfilerServiceImpl::engineAboutToBeAdded(), QQmlDebugTranslationServiceImpl::engineAboutToBeRemoved(), QQmlPreviewServiceImpl::engineAboutToBeRemoved(), QQmlBinding::evaluate(), QQmlJavaScriptExpression::evaluate(), QQmlJavaScriptExpression::evaluate(), QQuickSpinBoxPrivate::evaluateTextFromValue(), QQuickSpinBoxPrivate::evaluateValueFromText(), QQuickWorkerScript::event(), QQuickStackView::find(), findAttachedParent(), QQuickStackElement::fromStackViewArg(), QQuickStackElement::fromString(), QQmlEnginePrivate::get(), QQmlConnectionSlotDispatcher::impl(), QV4::QObjectSlotDispatcher::impl(), QQuickLoaderPrivate::incubatorStateChanged(), QQuickContext2D::init(), QQuickStackElement::initialize(), QQuickToolTipAttachedPrivate::instance(), QQuickImageBase::itemChange(), QQuickAnimatedImage::load(), QQuickBorderImage::load(), QQuickPdfPageImage::load(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QQmlPrivate::AOTCompiledContext::loadContextIdLookup(), QQuickCanvasItem::loadImage(), QQuickImageBase::loadPixmap(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlTypeWrapper::metaObject(), QV4Include::method_include(), QV4::QQmlTypeWrapper::object(), QQuickStackViewPrivate::parseElements(), propertyNameListForWritableProperties(), QQmlComponent::qmlAttachedProperties(), qmlAttachedPropertiesFunction(), QQmlPreviewHandler::removeEngine(), QQmlPrivate::AOTCompiledContext::resolveLoggingCategory(), JavaScriptJob::run(), QQmlTableModel::setData(), QQmlEnginePrivate::setInternalContext(), QQuickLoader::setSource(), QQuickLoader::setSource(), QV4::QQmlTypeWrapper::singletonObject(), QQmlBinding::slowWrite(), QQuickSpinBox::textFromValue(), QV4::QQmlTypeWrapper::toVariant(), QuickTestUtil::typeName(), QQmlBinding::update(), QQuickMultiEffectPrivate::updateBlurItemsAmount(), QQuickCanvasItem::updatePolish(), QQuickShaderEffectPrivate::updatePolish(), QQuickSpinBox::valueFromText(), and QV4::ModelObject::virtualGet().

◆ qmlExecuteDeferred()

Q_QML_EXPORT void qmlExecuteDeferred ( QObject * object)

This method completes the setup of all deferred properties of object. Deferred properties are declared with Q_CLASSINFO("DeferredPropertyNames", "comma,separated,property,list");

Any binding to a deferred property is not executed when the object is instantiated, but only when completion is requested with qmlExecuteDeferred, or by manually calling QQmlComponentPrivate::beginDeferred and completeDeferred.

See also
QV4::CompiledData::Binding::IsDeferredBinding, QV4::CompiledData::Object::HasDeferredBindings, QQmlData::deferData, QQmlObjectCreator::setupBindings

Definition at line 49 of file qqml.cpp.

References QQmlComponentPrivate::beginDeferred(), QQmlComponentPrivate::completeDeferred(), QQmlData::get(), QQmlEnginePrivate::get(), QQmlMetaType::propertyCache(), and state.

Referenced by QQuickState::apply(), QQuickStatePrivate::generateActionList(), QQuickTransition::prepare(), prepareTransition(), QQuickSwipeTransitionManager::transition(), QQuickDelayTransitionManager::transition(), and QQuickBehavior::write().

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

◆ qmlExtendedObject()

Q_QML_EXPORT QObject * qmlExtendedObject ( QObject * object)

Definition at line 129 of file qqml.cpp.

References QQmlPrivate::qmlExtendedObject().

Referenced by QQuickPdfDocument::classBegin().

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

◆ qmlProtectModule()

Q_QML_EXPORT bool qmlProtectModule ( const char * uri,
int majVersion )

Definition at line 238 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), QString::fromUtf8(), and QQmlMetaType::protectModule().

Referenced by QQmlEnginePrivate::init().

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

◆ qmlRegisterAnonymousSequentialContainer()

template<typename Container >
int qmlRegisterAnonymousSequentialContainer ( const char * uri,
int versionMajor )
inline

Definition at line 778 of file qqml.h.

References QTypeRevision::fromMajorVersion(), QQmlPrivate::qmlregister(), QQmlPrivate::SequentialContainerRegistration, and QTypeRevision::zero().

+ Here is the call graph for this function:

◆ qmlRegisterAnonymousType() [1/2]

template<typename T >
int qmlRegisterAnonymousType ( const char * uri,
int versionMajor )

◆ qmlRegisterAnonymousType() [2/2]

template<typename T , int metaObjectRevisionMinor>
int qmlRegisterAnonymousType ( const char * uri,
int versionMajor )

◆ qmlRegisterAnonymousTypesAndRevisions()

template<typename T >
void qmlRegisterAnonymousTypesAndRevisions ( const char * uri,
int versionMajor )

Definition at line 128 of file qqml.h.

◆ qmlRegisterCustomExtendedType()

template<typename T , typename E >
int qmlRegisterCustomExtendedType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
QQmlCustomParser * parser )

◆ qmlRegisterCustomType() [1/2]

template<typename T >
int qmlRegisterCustomType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
QQmlCustomParser * parser )

◆ qmlRegisterCustomType() [2/2]

template<typename T , int metaObjectRevision>
int qmlRegisterCustomType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
QQmlCustomParser * parser )

◆ qmlRegisterExtendedType() [1/2]

template<typename T , typename E >
int qmlRegisterExtendedType ( const char * uri,
int versionMajor )

◆ qmlRegisterExtendedType() [2/2]

template<typename T , typename E >
int qmlRegisterExtendedType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )

◆ qmlRegisterExtendedUncreatableType() [1/2]

template<typename T , typename E >
int qmlRegisterExtendedUncreatableType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & reason )

◆ qmlRegisterExtendedUncreatableType() [2/2]

template<typename T , typename E , int metaObjectRevision>
int qmlRegisterExtendedUncreatableType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & reason )

◆ qmlRegisterInterface()

template<typename T >
int qmlRegisterInterface ( const char * uri,
int versionMajor )

Definition at line 492 of file qqml.h.

References QTypeRevision::fromVersion(), QQmlPrivate::InterfaceRegistration, and QQmlPrivate::qmlregister().

+ Here is the call graph for this function:

◆ qmlRegisterModule()

Q_QML_EXPORT void qmlRegisterModule ( const char * uri,
int versionMajor,
int versionMinor )

Definition at line 245 of file qqml.cpp.

References QTypeRevision::fromVersion(), and QQmlMetaType::registerModule().

Referenced by QWaylandCompositorIviApplicationPlugin::defineModule(), QWaylandCompositorPresentationTimePlugin::defineModule(), QQtWaylandShellPlugin::defineModule(), QWaylandCompositorWlShellPlugin::defineModule(), QWaylandCompositorXdgShellPlugin::defineModule(), qml_register_types_QtQml(), and QWaylandTextureSharingPlugin::registerTypes().

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

◆ qmlRegisterModuleImport()

Q_QML_EXPORT void qmlRegisterModuleImport ( const char * uri,
int moduleMajor,
const char * import,
int importMajor = QQmlModuleImportLatest,
int importMinor = QQmlModuleImportLatest )
related

Referenced by QtQuickControls2Plugin::registerTypes().

+ Here is the caller graph for this function:

◆ qmlRegisterNamespaceAndRevisions() [1/2]

void qmlRegisterNamespaceAndRevisions ( const QMetaObject * metaObject,
const char * uri,
int versionMajor,
QList< int > * qmlTypeIds,
const QMetaObject * classInfoMetaObject,
const QMetaObject * extensionMetaObject )
inline

Definition at line 927 of file qqml.h.

References QTypeRevision::fromMajorVersion(), metaObject(), and QQmlPrivate::TypeAndRevisionsRegistration.

Referenced by qmlRegisterNamespaceAndRevisions().

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

◆ qmlRegisterNamespaceAndRevisions() [2/2]

void qmlRegisterNamespaceAndRevisions ( const QMetaObject * metaObject,
const char * uri,
int versionMajor,
QList< int > * qmlTypeIds = nullptr,
const QMetaObject * classInfoMetaObject = nullptr )
inline

Definition at line 968 of file qqml.h.

References metaObject(), and qmlRegisterNamespaceAndRevisions().

+ Here is the call graph for this function:

◆ qmlRegisterRevision()

template<typename T , int metaObjectRevision>
int qmlRegisterRevision ( const char * uri,
int versionMajor,
int versionMinor )

◆ qmlRegisterSingletonInstance()

template<typename T >
auto qmlRegisterSingletonInstance ( const char * uri,
int versionMajor,
int versionMinor,
const char * typeName,
T * cppObject ) -> typename std::enable_if<std::is_base_of<QObject, T>::value, int>::type
inline

Definition at line 730 of file qqml.h.

References QQmlPrivate::SingletonInstanceFunctor::m_object, and typeName.

◆ qmlRegisterSingletonType() [1/3]

template<typename F , typename std::enable_if< std::is_convertible< F, std::function< QJSValue(QQmlEngine *, QJSEngine *)> >::value, void >::type * = nullptr>
int qmlRegisterSingletonType ( const char * uri,
int versionMajor,
int versionMinor,
const char * typeName,
F && callback )

Definition at line 679 of file qqml.h.

References api, QTypeRevision::fromVersion(), QQmlPrivate::qmlregister(), QQmlPrivate::SingletonRegistration, typeName, and QTypeRevision::zero().

+ Here is the call graph for this function:

◆ qmlRegisterSingletonType() [2/3]

template<typename T , typename F , typename std::enable_if< std::is_convertible< F, std::function< QObject *(QQmlEngine *, QJSEngine *)> >::value, void >::type * = nullptr>
int qmlRegisterSingletonType ( const char * uri,
int versionMajor,
int versionMinor,
const char * typeName,
F && callback )

Definition at line 706 of file qqml.h.

References api, QTypeRevision::fromVersion(), QQmlPrivate::qmlregister(), QQmlPrivate::QmlMetaType< T >::self(), QQmlPrivate::SingletonRegistration, QQmlPrivate::StaticMetaObject< T, typename >::staticMetaObject(), typeName, and QTypeRevision::zero().

+ Here is the call graph for this function:

◆ qmlRegisterSingletonType() [3/3]

int qmlRegisterSingletonType ( const QUrl & url,
const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )
inline

Definition at line 739 of file qqml.h.

References QQmlPrivate::CompositeSingletonRegistration, QTypeRevision::fromVersion(), QUrl::isRelative(), QQmlPrivate::qmlregister(), qWarning, and url.

+ Here is the call graph for this function:

◆ qmlRegisterType() [1/3]

template<typename T >
int qmlRegisterType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )

◆ qmlRegisterType() [2/3]

template<typename T , int metaObjectRevision>
int qmlRegisterType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )

◆ qmlRegisterType() [3/3]

int qmlRegisterType ( const QUrl & url,
const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )
inline

Definition at line 758 of file qqml.h.

References QQmlPrivate::CompositeRegistration, QTypeRevision::fromVersion(), QUrl::isRelative(), QQmlPrivate::qmlregister(), qWarning, and url.

+ Here is the call graph for this function:

◆ qmlRegisterTypeNotAvailable()

int Q_QML_EXPORT qmlRegisterTypeNotAvailable ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & message )

Definition at line 913 of file qqml.cpp.

◆ qmlRegisterTypesAndRevisions()

template<typename... T>
void qmlRegisterTypesAndRevisions ( const char * uri,
int versionMajor,
QList< int > * qmlTypeIds )

Definition at line 914 of file qqml.h.

◆ qmlRegisterUncreatableMetaObject()

Q_QML_EXPORT int qmlRegisterUncreatableMetaObject ( const QMetaObject & staticMetaObject,
const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & reason )

Definition at line 195 of file qqml.cpp.

References QQmlPrivate::RegisterType::CurrentVersion, QTypeRevision::fromVersion(), QQmlPrivate::None, QQmlPrivate::qmlregister(), QQmlPrivate::TypeRegistration, and QTypeRevision::zero().

+ Here is the call graph for this function:

◆ qmlRegisterUncreatableType() [1/2]

template<typename T >
int qmlRegisterUncreatableType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & reason )

◆ qmlRegisterUncreatableType() [2/2]

template<typename T , int metaObjectRevision>
int qmlRegisterUncreatableType ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName,
const QString & reason )

◆ qmlTypeId()

int Q_QML_EXPORT qmlTypeId ( const char * uri,
int versionMajor,
int versionMinor,
const char * qmlName )

Definition at line 357 of file qqml.cpp.

References QTypeRevision::fromVersion(), and QQmlMetaType::typeId().

Referenced by QQmlMetaType::qmlTypeById(), and QQmlEngine::singletonInstance().

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

◆ qmlUnregisterModuleImport()

Q_QML_EXPORT void qmlUnregisterModuleImport ( const char * uri,
int moduleMajor,
const char * import,
int importMajor = QQmlModuleImportLatest,
int importMinor = QQmlModuleImportLatest )
related

Referenced by QtQuickControls2Plugin::unregisterTypes().

+ Here is the caller graph for this function: