aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/src/qmlfunctions.qdoc
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-12-11 12:50:53 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2020-12-15 12:43:18 +0100
commit9f7c04985dfe0337cfe8d20ef7605b0a837c199b (patch)
treecb859d2a3d297d36ce1753e8e186731612c44d05 /src/qml/doc/src/qmlfunctions.qdoc
parent2f9e315fe71e43bc6de8dc9bc25c9cb7f5f5ae42 (diff)
docs/QML_ELEMENT: Warn about possible namespace conflicts
Change-Id: I8fff0ba3e571273c203d4e566dcb604b75a835a8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/doc/src/qmlfunctions.qdoc')
-rw-r--r--src/qml/doc/src/qmlfunctions.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc
index e66a6aae4a..01ce96167f 100644
--- a/src/qml/doc/src/qmlfunctions.qdoc
+++ b/src/qml/doc/src/qmlfunctions.qdoc
@@ -68,6 +68,10 @@
You can also make namespaces tagged with Q_NAMESPACE available this way, in
order to expose any enums tagged with Q_ENUM_NS they contain.
+ \b{NOTE:} When classes have the same name but are located in different namespaces using
+ \l QML_ELEMENT on both of them will cause a conflict.
+ Make sure to use \l QML_NAMED_ELEMENT() for one of them instead.
+
\sa {Choosing the Correct Integration Method Between C++ and QML}, QML_NAMED_ELEMENT(),
Q_REVISION(), QML_ADDED_IN_MINOR_VERSION()
*/