Details
Description
Currently, if you call QScriptValue::toVariant() on an Array object, you get back a QVariant containing a QScriptValue containing the array, i.e. an opaque QVariant. Perhaps Qt Script could convert the Array to a QVariantList instead; this would be more useful. Similarly, a plain object could be converted to a QVariantMap. qScriptValueFromValue() should do the conversion the other way.
Attachments
Issue Links
- relates to
-
QTBUG-7206 QTScript default conversion from Qt Script to C++ fails with objects as properties of objects
- Closed