Storing data using Settings element in QML
问题 I have the following code (windowid in code below refers to the root element's id, Root element's width & height are same as device's width & height (i.e FullScreened) Image{ id:tick1 source: "../../pics/tick.png" width:0.0395*windowid.width height:0.041*windowid.height x: 0.4474*windowid.width y: 99 visible: false MouseArea{ anchors.fill: parent onClicked: tick1.y = tick1.y + 20 } Settings{ property alias yValue: tick1.y } } The above code saves the y value of the image & ensure that the new