diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-11-23 09:40:06 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-11-23 16:12:44 +0100 |
commit | 7b89ae6ef4158dcbd1940e088c84eba747c166bc (patch) | |
tree | a31424073f5817d78e2ec334963fed38b342537e /src/qml/doc/src/qmlfunctions.qdoc | |
parent | d0733d14063bbe62082b581599e78e312d3008be (diff) |
qmlfunctions.qdoc: Add QML_IMPLEMENTS_INTERFACES
Change-Id: I4ff76b49bd5f40eb58c9f44669bb4836dd9e48be
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.qdoc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc index 9136bc36cc..4241c7ff8f 100644 --- a/src/qml/doc/src/qmlfunctions.qdoc +++ b/src/qml/doc/src/qmlfunctions.qdoc @@ -134,7 +134,22 @@ Interface types are implicitly anonymous and uncreatable in QML. - \sa QML_ELEMENT, QML_NAMED_ELEMENT(), QML_UNCREATABLE(), QML_ANONYMOUS + \b{NOTE:} When inheriting from types using QML_INTERFACE, use \l QML_IMPLEMENTS_INTERFACES + instead of \l Q_INTERFACES. + + \sa QML_IMPLEMENTS_INTERFACES(), QML_ELEMENT, QML_NAMED_ELEMENT(), QML_UNCREATABLE(), QML_ANONYMOUS +*/ + +/*! + \macro QML_IMPLEMENTS_INTERFACES(interfaces) + \relates QQmlEngine + + This macro tells Qt which QML interfaces the class implements. + This macro should only be used for interfacing with classes using \l QML_INTERFACE, use \l Q_INTERFACES otherwise. + It's required in order for declarative registration via \l QML_ELEMENT to function properly. + + + \sa QML_INTERFACE, Q_INTERFACES */ /*! |