Details
-
Suggestion
-
Resolution: Duplicate
-
P4: Low
-
None
-
Linux. Debian 64 bits. Gnome. Qt 5.3.1.
Description
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
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)
If I run this example in Qt, the rectangle doesn't show any text unless I change that line of code.
Attachments
Issue Links
- duplicates
-
QTBUG-42404 Refering to value defined at another level in "First Steps with QML"
- Closed