Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
4.8.0
Description
When writing QML animations, you sometimes run into the case where you want to disable animations when some flag is set. This is often easier than adding a state, especially if the states are very complex. To disable some animations you have to currently write code like this,
Transition { NumberAnimation { target: root; property: "height"; duration: enableAnimations ? 200 : 0 } // repeat for other animations too }
It would result in clearer QML code if the user can just assign the "enableAnimations" property to enabled. Also, the animations would still be toolable with the addition of this property.
Attachments
Issue Links
- depends on
-
QTBUG-13451 Support property versioning in QML
-
- Closed
-
- is replaced by
-
QTBUG-14488 Transition enabled property
-
- Closed
-