Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

change states.

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles