diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-11-23 13:17:40 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-11-23 14:29:02 +0100 |
commit | 56f428c360191230b571969a2651e85380030afa (patch) | |
tree | be6767d2baa7b00650153639f5f5be747a3517b2 /src/qml/doc/src/qmlfunctions.qdoc | |
parent | 22e13d41b0e8085b25b669eb7d23744252f2c117 (diff) |
qmlfunctions.qdoc: Add clarification to QML_FOREIGN
Fixes: QTBUG-87150
Pick-to: 5.15 6.0
Change-Id: If99a06a07892bdfef7b6b1e8fa737480750992fe
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/doc/src/qmlfunctions.qdoc')
-rw-r--r-- | src/qml/doc/src/qmlfunctions.qdoc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc index f7a84e6584..9136bc36cc 100644 --- a/src/qml/doc/src/qmlfunctions.qdoc +++ b/src/qml/doc/src/qmlfunctions.qdoc @@ -269,6 +269,10 @@ for example because they belong to 3rdparty libraries. To register a namespace, see \l QML_FOREIGN_NAMESPACE(). + \b{NOTE:} You may want to use \l QML_NAMED_ELEMENT() instead of \l QML_ELEMENT due to the fact that + the element will be named like the struct it is contained in, not the foreign type. + See \l {Extending QML - Extension Objects Example} for an example. + \sa QML_ELEMENT, QML_NAMED_ELEMENT(), QML_FOREIGN_NAMESPACE() */ |