-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4
-
None
-
4.7.4 on windows
-
62917a96222ac8d3a391b0aefe2ee8905c8da874
when trying to bind to paused property, it complains about
[6768] QAbstractAnimation::pause: Cannot pause a stopped animation
NumberAnimation on index {
from: 1; to: 12
duration: 1000
running: true
paused: !root.running
loops: Animation.Infinite
}
the work around is to something funny like:
NumberAnimation on index {
id: numAniBind2
from: 1; to: 12
duration: 1000
running: true
loops: Animation.Infinite
}
Component {
id: bindingCom
Binding {
target: numAniBind2
property: "paused"
value: numAniBind2.running ? !root.running : false
}
}
Component.onCompleted: bindingCom.createObject(text5)
In the attached test code, I tried to use 4 different ways to bind to it and only the last one is working
| For Gerrit Dashboard: QTBUG-19080 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 2366,1 | Ensure bindings on pause work correctly. | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |