aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qml/doc/src/cppintegration/exposecppattributes.qdoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/doc/src/cppintegration/exposecppattributes.qdoc b/src/qml/doc/src/cppintegration/exposecppattributes.qdoc
index 6031d0eebb..83b7155636 100644
--- a/src/qml/doc/src/cppintegration/exposecppattributes.qdoc
+++ b/src/qml/doc/src/cppintegration/exposecppattributes.qdoc
@@ -521,6 +521,12 @@ pragma NativeMethodBehavior: AcceptThisObject
With this line added, the example above will work as expected.
+\section2 Overriding toString()
+
+If you provide a Q_INVOKABLE method called \e{toString} (with no arguments), that
+method will be used to convert the object to a string in place of JavaScript's
+native \e{toString} implementation.
+
\section1 Exposing Signals
Any public \l{Signals & Slots}{signal} of a QObject-derived type is accessible