Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.6.0
-
None
Description
For example, the animal property below defines a JavaScript object defined with JSON notation:
Item { property variant animal : { 'type': 'bird', 'species': 'galah', 'age': 7 } Component.onCompleted: { for (var attribute in animal) console.log(attribute, "=", animal[attribute]) } }
After qml formatting, the character ' is missing:
Item { property variant animal: { type: 'bird', species: 'galah', age: 7 } Component.onCompleted: { for (var attribute in animal) console.log(attribute, "=", animal[attribute]) } }