Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.4
-
None
Description
When an animator is paused and then again resumed, it crashes:
[FATL | default] ASSERT: "!job->isRunning()" in file [...]quick/util/qquickanimatorcontroller.cpp, line 100 [qquickanimatorcontroller.cpp:100]
Both happening when using pause() and resume() and paused property itself.
If running is extended to also listen to root.isAnimationPaused, it's not crashing, but animator is also starting from beginning instead of resuming from position where it was paused.
minor example:
import QtQuick import QtQuick.Controls Item { id: root property bool isAnimationPaused: false ScaleAnimator { target: _shine paused: root.isAnimationPaused from: 1.0 to: 0.5 running: true loops: Animation.Infinite } Rectangle { id: _shine opacity: 0.75 width: 200 height: 200 } Button { text: "Toggle" onClicked: { root.isAnimationPaused = !root.isAnimationPaused; } } }