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

    • 28102d1935dfd7fc88c4bb3b656aadc44942f562

      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).

        1. QTBUG-20827.png
          QTBUG-20827.png
          12 kB
        2. QTBUG-20827.qml
          2 kB
        For Gerrit Dashboard: QTBUG-20827
        # Subject Branch Project Status CR V

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes