Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing property with literal object value #25

Open
GTylissanakis opened this issue Nov 1, 2016 · 1 comment
Open

Error parsing property with literal object value #25

GTylissanakis opened this issue Nov 1, 2016 · 1 comment
Labels

Comments

@GTylissanakis
Copy link

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"}
@ChALkeR ChALkeR added the bug label Nov 12, 2016
@ChALkeR
Copy link
Member

ChALkeR commented Nov 12, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants