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

Investigate adding support for more curves to SmoothedAnimation

    XMLWordPrintable

Details

    Description

      SmoothedAnimation is hard-coded to use an InOutQuad easing curve. This results in an inconsistent look when using SmoothedAnimation together with other NumberAnimations that don't need smoothing where the curve is for example InOutExpo (based on a design decision).

      If the math to smooth other curve types is too complex an alternative would be to use curve blending. The solution should support the use-case of changing the to-value of the animation ~20 times during the animation, so we might have to not do a complete blending of all curves but pre-compute each curve when changed and only keep the previous curve around.

      Ideally, from an API standpoint, if we can support any kind of curve using curve blending the feature would merge into regular NumberAnimation by adding a new boolean property "smooth", that's disabled by default to keep the current behavior.

      Attachments

        Issue Links

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

          Activity

            People

              aakenned Aaron Kennedy
              vestbo Tor Arne Vestbø
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes