Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.11.1
-
Fix Version/s: 5.12.0
-
Component/s: QML: Declarative and Javascript Engine
-
Platform/s:
Description
Create a property with an empty JS object, like so:
property var test: ({})
Assign some values, like so:
Component.onCompleted: test.property = 0
Trigger QQmlEngine::retranslate(), which will cause 'test' to be set to an empty object again.
I've attached an example to reproduce the issue.