Paste P124

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Oct 30 2017, 10:44 AM.
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
}
}
davidedmundson edited the content of this paste. (Show Details)Oct 30 2017, 10:44 AM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.
davidedmundson updated the paste's language from autodetect to autodetect.