Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
4.7.0
-
None
Description
In the example below I'm trying to have an animation run inside a transition. The from value should depend on a value specified in the new state. This does not work.
import Qt 4.7 Item { id: item; property int p: 10; property int strange; onStrangeChanged: print("strange=" + strange); states: [ State { name: "Other" PropertyChanges { target: item p: 20; } } ] Timer { interval: 100 running: true; onTriggered: item.state = "Other" } transitions: [ Transition { from: "" to: "Other" SequentialAnimation { PropertyAction { target: item; property: "p"; } ScriptAction { script: print("p=" + item.p); } // strange should animated from 20, but it animates from 10 NumberAnimation { target: item; property: "strange"; from: item.p; to: 0;} } } ] }
Attachments
Issue Links
- is duplicated by
-
QTBUG-29553 Property Action reads incorreect old value for specified property
- Closed
-
QTBUG-72272 PropertyAction limitations should be documented better
- Closed
- relates to
-
QTBUG-20435 PropertyChanges is inconsistently effective before or after transitions
- Open
- replaces
-
QTBUG-17552 Changes to Animation's 'to' and 'from' properties ignored while animating
- Closed