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

Animating width of child rectangle in Layout container doesn't update other children

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.0 Alpha
    • Quick: Layouts
    • None
    • Windows, Linux, mac. No difference.

      Hi,

      Take the attached file as example.

      In ASCII you have a layout like this:
      -----------

         
      A B
         

      -----------

      "A" has a fixed width or even Layout.preferredWidth.
      "B" fills up the available space.

      If we change the width of "A" and animate that:
      Behavior on width {
      NumberAnimation

      { duration: 1000 }

      }

      then "A" does animate to the new width. "B" however doesn't shrink/grow. It stays exactly as it was before the animation. So what happens here is "A" growing behind "B".

      What should happen when A grows is B shrinks equally and the other way around.

      I hope i explained it well.

      Cheers,
      Mark

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

            smd Jan Arve
            markg85 Mark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes