Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.0
-
None
Description
You often want to stop animation without restarting it fully, which can be accomplished with paused property.
Unfortunately following code will lead to
NumberAnimation { running: program.state paused: Qt.application.active }
following unhelpful warnings
QML NumberAnimation: setPaused() cannot be used when animation isn't running
, forcing the developer to write boilerplate
NumberAnimation { running: program.state paused: running && Qt.application.active }
While conceptually understandable not sure what is the value of coupling running and paused states so tightly together.
s