Hello all!
1) How can I find out the values of previous state, then state changes?
2) How to run some script then get out from some state? (analogue of StateChangeScript{}, but run on exit state)
Example:
Rectangle{
id: myrect
states:[
state1{name: "state1"; target: myrect; color: "Red"},
state2{name: "state2"; target: myrect; color: "Green"},
state3{name: "state3"; target: myrect; color: "Blue"},
...
state10{name: "state10"; target: myrect; color: "Black"},
]
onStateChange:{
console.log( ) // this is trouble. I need print "color changed from Green to Yello"
}
}
my Qt version is 4.8. QML 1.1.
sory for bad English.
↧