path: root/examples/qml/doc/src
diff options
authorNico Vertriest <>2016-12-21 14:33:32 +0100
committerNico Vertriest <>2017-01-09 09:38:14 +0000
commita0ed2b0ef3f9259f245294c59e6f4695f29caddd (patch)
treeaa4a4d461fef15604733bbd8e41672e73c8cb6d8 /examples/qml/doc/src
parent27ea28b0f451076e773f9dc78babfdd799c3e0d8 (diff)
Doc: added specs to Extending QML - Methods Example
Change-Id: I7386c2bd738776455a71bde8cffdcedb9e292b24 Reviewed-by: Venugopal Shivashankar <> Reviewed-by: Mitch Curtis <> Reviewed-by: Topi Reiniƶ <>
Diffstat (limited to 'examples/qml/doc/src')
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/qml/doc/src/qml-extending.qdoc b/examples/qml/doc/src/qml-extending.qdoc
index 0cb004be7d..b4174426a8 100644
--- a/examples/qml/doc/src/qml-extending.qdoc
+++ b/examples/qml/doc/src/qml-extending.qdoc
@@ -310,6 +310,15 @@ This example builds on:
\li \l {Extending QML - Adding Types Example}
+The Methods Example has an additional method in the \c BirthdayParty class: \c invite().
+\c invite() is declared with \l Q_INVOKABLE so that it can be
+called from QML.
+\snippet referenceexamples/methods/birthdayparty.h 0
+In \c example.qml, the \c invite() method is called in the \l [QML]{QtQml::Component::completed()}{Component.onCompleted} signal handler:
+\snippet referenceexamples/methods/example.qml 0