Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.8.0
-
None
-
Windows 7 64 bit
-
0e69268b4 (dev), b2c09fd75 (6.6), 3f862f736 (6.5)
Description
Changing the duration of an Animation included in a SequentialAnimation correctly sets the targeted property, but the real duration of the Animation is not affected.
main.qml
import QtQuick 2.6 import QtQuick.Window 2.2 Window { visible: true width: 640 height: 480 SequentialAnimation { id: mainAnim running: true ScriptAction { script: { targetAnim.duration = 10000 } } PropertyAnimation { id: targetAnim target: aRectangle property: "width" from: 100 to: 1000 duration: 1000 onDurationChanged: console.log(duration) } } Rectangle { id: aRectangle width: 100 height: 100 color: "yellow" } }
In this example, the animation takes 1 second instead of 10.
Attachments
Issue Links
- relates to
-
QTBUG-38932 PropertyAnimation ignores from/to changes
-
- Closed
-