diff options
-rw-r--r-- | src/qml/jsapi/qjsengine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp index 37b5306897..94b0628cd7 100644 --- a/src/qml/jsapi/qjsengine.cpp +++ b/src/qml/jsapi/qjsengine.cpp @@ -821,6 +821,7 @@ bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr) /*! \fn template <typename T> QJSValue QJSEngine::toScriptValue(const T &value) Creates a QJSValue with the given \a value. + This works with any type \c{T} that has a \c{QMetaType}. \sa fromScriptValue() */ @@ -828,6 +829,7 @@ bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr) /*! \fn template <typename T> T QJSEngine::fromScriptValue(const QJSValue &value) Returns the given \a value converted to the template type \c{T}. + This works with any type \c{T} that has a \c{QMetaType}. \sa toScriptValue() */ |