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

Expose QEasingCurve to QML

    XMLWordPrintable

Details

    • 5d3f3fdbd (dev)

    Description

      This would allow using Qt's predefined easing curves with FrameAnimation. For example, instead of the custom easing functions in this snippet, we could do something like this:

      EasingCurve {
          id: easingCurve
          type: EasingCurve.InOutQuad
      }
      
      value: root.from + root.to * easingCurve.valueForProgress(root.progress)
      

      or if we wanted to go with a simpler API, just make it a singleton:

      value: root.from + root.to * EasingCurve.valueForProgress(root.progress, EasingCurve.InOutQuad)
      

      Attachments

        For Gerrit Dashboard: QTBUG-137468
        # Subject Branch Project Status CR V

        Activity

          People

            qtqmlteam Qt Qml Team User
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes