From 8afd2d145e608d9d86860c6400844fe4c39edbb4 Mon Sep 17 00:00:00 2001 From: Geir Vattekar Date: Thu, 24 Feb 2011 11:17:47 +0100 Subject: Doc: Added more info on calling C++ functions from Qt Script Task-number: QTBUG-14959 Reviewed-by: Kent Hansen --- doc/src/scripting/scripting.qdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/src/scripting/scripting.qdoc b/doc/src/scripting/scripting.qdoc index 112af5c..f882da0 100644 --- a/doc/src/scripting/scripting.qdoc +++ b/doc/src/scripting/scripting.qdoc @@ -657,6 +657,12 @@ call to \c{connect()} in script code; \c{connect()} accepts both native and non-native functions as targets. + As discussed in \l{Default Conversion from Qt Script to C++}, Qt + Script handles conversion for many C++ types. If your function takes + arguments for which Qt Script does not handle conversion, you need + to supply conversion functions. This is done using the + qScriptRegisterMetaType() function. + \section2 Making C++ Class Properties Available in QtScript In the previous example, if we wanted to get or set a property using -- cgit v0.12