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

"parent" in ParentChange should refere to new parent, not target

    XMLWordPrintable

Details

    • 273024e58d90bb9b3a5da0161f884f1af22d75df, 3d1a6596c6a381b71718af22eb8a861830ec7b6b

    Description

      See the code in QTBUG-10671.

      Add

      width: parent.width-10; height: parent.height-10
      

      to the two ParentChanged statements
      and add

      width, height

      to the NumberAnimation's "properties" value in the ParentAnimation.
      Run the code and note how the size of the blue rect never changes. This is because the
      "parent" in the code added refers to the parent of the "target" (or perhaps the parent of the current context), not the new parent as expected.

      Attachments

        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)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes