-
Suggestion
-
Resolution: Out of scope
-
P4: Low
-
None
-
4.7.0
-
None
-
Windows NT
-
8afd2d145e608d9d86860c6400844fe4c39edbb4
Hallo there,
I feel that the documentation of QScriptValue is easy to understand for the people who already have a good idea about the issue.
On the other hand I don't understand much.
I read:
>>For the object-based types (including Date and RegExp), use the newT() functions in QScriptEngine (e.g. QScriptEngine::newObject()) to create a QScriptValue of the desired type. For the primitive types, use one of the QScriptValue >>constructor overloads.
How do I do that? Please add an example on how to make a Qt standard type accessabel in the script.
This paragraph points to QScriptEngine for more information, the appropreate section points to "QtScript documentation" which points back to QScriptValue and QScriptEngine.
I guess the whole issue is complicated.
For me Qt script is a great thing.
But my attempts to use Qt script in my project did not produce much fruit so far.
i would greately benefit from a tutorial about how to extend the Qt script basic language.
Cheers Gerhard