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

Adding a Behavior to Scale's origin.x/y sets x/y to 0

    XMLWordPrintable

Details

    • 28102d1935dfd7fc88c4bb3b656aadc44942f562

    Description

      In the attached .qml, the two rectangles differ only by the added

      Behavior on origin.x { NumberAnimation { duration: 500 } }
      Behavior on origin.y { NumberAnimation { duration: 500 } }

      to the Scale transform.
      Executing it shows that on Component.onCompleted the two Scales values of origin.x/y are different.

      On create rect2: 0, 0
      On create rect1: 50, 50
      

      This causes a very different behaviour when the x/yScale values are then changed (click to show the animation, also see screenshot).

      Attachments

        1. QTBUG-20827.png
          QTBUG-20827.png
          12 kB
        2. QTBUG-20827.qml
          2 kB

        Issue Links

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

          Activity

            People

              brasser Michael Brasser (closed Nokia identity) (Inactive)
              dajansen Damian Jansen (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes