diff options
Diffstat (limited to 'src/qml/doc/src/qmlfunctions.qdoc')
-rw-r--r-- | src/qml/doc/src/qmlfunctions.qdoc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc index cf3527c7d8..c240a02d16 100644 --- a/src/qml/doc/src/qmlfunctions.qdoc +++ b/src/qml/doc/src/qmlfunctions.qdoc @@ -251,6 +251,29 @@ */ /*! + \fn Object *qmlAttachedPropertiesObject(const QObject *attachee, bool create = true) + \relates QQmlEngine + + The form of this template function is: + + \code + template<typename T> QObject *qmlAttachedPropertiesObject(const QObject *attachee, bool create = true) + \endcode + + This returns the attached object instance that has been attached to the specified + \a attachee by the attaching type \e T. + + If \a create is true and type \e T is a valid attaching type, this creates and returns a new + attached object instance. + + Returns 0 if type \e T is not a valid attaching type, or if \a create is false and no + attachment object instance has previously been created for \a attachee. + + \sa {Providing Attached Objects for Data Annotations} + +*/ + +/*! \fn int qmlRegisterModuleApi(const char *uri, int versionMajor, int versionMinor, QObject *(*callback)(QQmlEngine *, QJSEngine *)) \relates QQmlEngine |