import QtQuick 2.0
Item {
id: root
Component.onCompleted: {
console.log("=====PART 1=====")
var rect = Qt.rect(50, 50, 100, 100);
console.log(rect.x); //output 50
rect.x += 500;
console.log(rect.x); //output 550
console.log("=====PART 2=====")
var rect2 = root.childrenRect
console.log(rect2.x); //output 50
rect2.x += 500;
console.log(rect2.x); //output 50
}
Item {
x:50
width: 100
y:50
height: 100
}
}