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

Little mistake in example

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

Viewing all articles
Browse latest Browse all 4972

Trending Articles