1 2 3 4 5 6 7 8 9 10
import QtQml 2.2 QtObject { property int x: 42 property int y: 0 function g(){ y = this.x; } property var f: g Component.onCompleted: f() }