diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2011-02-24 10:17:47 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2011-02-24 10:17:47 (GMT) |
commit | 8afd2d145e608d9d86860c6400844fe4c39edbb4 (patch) | |
tree | f4e504b594f0c8b8f8aa7bf409e4617abf9ee290 /doc | |
parent | 719a3079e5675936bc72b65121ac0a0245e29d62 (diff) | |
download | Qt-8afd2d145e608d9d86860c6400844fe4c39edbb4.zip Qt-8afd2d145e608d9d86860c6400844fe4c39edbb4.tar.gz Qt-8afd2d145e608d9d86860c6400844fe4c39edbb4.tar.bz2 |
Doc: Added more info on calling C++ functions from Qt Script
Task-number: QTBUG-14959
Reviewed-by: Kent Hansen
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/scripting/scripting.qdoc | 6 |
1 files changed, 6 insertions, 0 deletions
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 |