path: root/src/qml/util/qqmlpropertymap.cpp
diff options
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2019-08-21 10:03:31 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2019-08-21 16:32:07 +0200
commit38bac80aea1c2bd58acb10000e9a3daa65bba503 (patch)
treeab35dbe4441bd39cede71b321f8f054658b7bd20 /src/qml/util/qqmlpropertymap.cpp
parent1adbf16f2526b797a70bccf21b1400451f9d4cbb (diff)
Document that QQmlPropertyMap's meta object is not threadsafe
It is generated and modified at runtime, so applications have to synchronize access explicitly. Fixes: QTBUG-70915 Change-Id: Ie6f29eef8532e2fa4ebf8dad1678cd2acbacf659 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/qml/util/qqmlpropertymap.cpp')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/util/qqmlpropertymap.cpp b/src/qml/util/qqmlpropertymap.cpp
index 3f78ca6b69..82f048d9d9 100644
--- a/src/qml/util/qqmlpropertymap.cpp
+++ b/src/qml/util/qqmlpropertymap.cpp
@@ -180,6 +180,10 @@ int QQmlPropertyMapMetaObject::createProperty(const char *name, const char *valu
\note When deriving a class from QQmlPropertyMap, use the
\l {QQmlPropertyMap::QQmlPropertyMap(DerivedType *derived, QObject *parent)} {protected two-argument constructor}
which ensures that the class is correctly registered with the Qt \l {Meta-Object System}.
+ \note The QMetaObject of a QQmlPropertyMap is dynamically generated and modified.
+ Operations on that meta object are not thread safe, so applications need to take
+ care to explicitly synchronize access to the meta object.