I have a C++ defined property of type QJSValue, and use it in the following QML:
Both the literal and prop objects are parsed as expected. For the func object in the foo setter I have verified that the value passed in is correct. I can use QJSValue::toString() to print out the correct value of each item in the array. However, QJSValue::toVariant() returns a QVariant containing a QVariantMap.
Changing the returned value of QJSValuePrivate::toVariant() from
as suggested seems to fix the issue in this case.