path: root/src/corelib/kernel/qmetatype.cpp
diff options
authorStephen Kelly <>2013-04-05 13:24:54 +0200
committerThe Qt Project <>2013-05-08 12:45:59 +0200
commit508ee5616b80979f6800beeb4a52fa5cc0a4ad0a (patch)
treee093d10077f923b6c34d3e8a717433a7712da5b9 /src/corelib/kernel/qmetatype.cpp
parentc5a6b894e7484544c44a8a415a84e196c4b633c3 (diff)
Add automatic container access registration for built-in containers.
Change-Id: I4d590c23e072994930922ff73367600f848fbcf0 Reviewed-by: Stephen Kelly <>
Diffstat (limited to 'src/corelib/kernel/qmetatype.cpp')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp
index 37ff858530..fe7cc53181 100644
--- a/src/corelib/kernel/qmetatype.cpp
+++ b/src/corelib/kernel/qmetatype.cpp
@@ -1971,6 +1971,10 @@ const QMetaObject *QMetaType::metaObjectForType(int type)
a QVariantList. If compilation fails, then you probably forgot to
Q_DECLARE_METATYPE the value type.
+ Note that it is not necessary to call this method for Qt containers (QList,
+ QVector etc) or for std::vector or std::list. Such containers are automatically
+ registered by Qt.
\sa QVariant::canConvert()