qmlweb-parser
qmlweb-parser copied to clipboard
Error parsing property with literal object value
my qml contains the following code:
property var map: {"A": "test", "B": "test"}
and I get the following error:
Unexpected token: punc (:) (line: 22, col: 25, pos: 665)
>>22 property var map: {"A": "test", "B": "test"}
Yes, I can confirm this.
It seems that objects with quoted property names should be treated as plain js objects, i.e. as wrapped in { return ... }. That doesn't work for objects with unquoted property names that way in Qt, though.