From 508ee5616b80979f6800beeb4a52fa5cc0a4ad0a Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 5 Apr 2013 13:24:54 +0200 Subject: Add automatic container access registration for built-in containers. Change-Id: I4d590c23e072994930922ff73367600f848fbcf0 Reviewed-by: Stephen Kelly --- src/corelib/kernel/qmetatype.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/kernel/qmetatype.cpp') 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() */ -- cgit v1.2.3