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

Animation easing type can't be changed dynamically

XMLWordPrintable

      Running the QML snippet below demonstrates how the animation property easing.type (I think it's the same for other properties of easing too) can't be changed after declaration, while others can be.

      import Qt 4.6
      
      Rectangle {
          id: animatorBug
          width: 500
          height: 200
      
          Text {
              id: label
              x: 0
              y: 93
              text: "Hello World"
          }
      
          MouseArea {
              anchors.fill: parent;
              onClicked: {
                  animator.duration = 1000;
                  animator.to = 400;
                  animator.easing.type = Easing.Linear;
                  animator.start();
                  }
          }
      
          NumberAnimation { id: animator; target: label; property: "x"; to: 100; easing.type: Easing.InBounce; duration: 5000; }
      
      }
      

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

            aakenned Aaron Kennedy
            juturune Juha Turunen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes