Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15149

QML Transition element should have "enabled" property

    XMLWordPrintable

Details

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              martjone Martin Jones (closed Nokia identity) (Inactive)
              holmsted Lasse Holmstedt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes