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

Documentation for Qml Behavior is wrong

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Documentation
    • None

      In Qt Quick / QML documentation, the code snippet on Behavior element page is wrong.

      Now the snippet is:

      Rectangle {
      width: 20; height: 20
      color: "#00ff00"
      y: 200 //initial value
      y: Behavior {
      NumberAnimation

      { easing: "easeOutBounce(amplitude:100)" duration: 200 }

      }
      }

      This would work:

      Rectangle {
      width: 20; height: 20
      color: "#00ff00"
      y: 200 //initial value
      Behavior on y {
      NumberAnimation

      { easing.type: Easing.OutBounce easing.amplitude: 100 duration: 200 }

      }
      }

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

            gbk Martin Smith (Qt)
            holmsted Lasse Holmstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes