5 property bool test: false
7 property var truck: new vehicle(8);
8 property int wheelCount: truck.wheels
10 function vehicle(wheels) {
14 Component.onCompleted: {
15 if (wheelCount != 8) return;
17 // not bindable, but wheelCount will update because truck itself changed.
18 truck = new vehicle(12);
20 if (wheelCount != 12) return;