Hi!
I think in this example (found on http://qt-project.org/doc/qt-5/qmlfirststeps.html#animations) there is a mistake:
Rectangle {
color: "lightgray"
width: 200
height: 200
property int animatedValue: 0
SequentialAnimation on animatedValue {
loops: Animation.Infinite
PropertyAnimation { to: 150; duration: 1000 }
PropertyAnimation { to: 0; duration: 1000 }
}
Text {
anchors.centerIn: parent
text: animatedValue
}
}
“text: animatedValue” should be “text: parent.animatedValue”. Another option could be add an id in Rectangle and use it in Text (i.e. myrect.animatedValue)
Sorry it this message should be posted in a different thread.
↧