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

QML Item.childrenRect does not work correctly when doing AnchorChanges in state change.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.7.0
    • None
    • qt-qml 4.7 branch baselined this week
    • bba51197a1f99a5c77c2747de2ecd399fdb638a0

    Description

      When an Item that has width & height set to be childrenRect.width & height is reanchored in a state change the Item does not show in correct place. (see exmaple attached)
      The pictures show the situation before and after a state change. With explicitly calculating the width & height (the right hand side) thinks are pretty much as they should but when using childrenRect the texts are too much in right.

      Attachments

        1. screen2.png
          screen2.png
          5 kB
        2. screen1.png
          screen1.png
          5 kB
        3. childrenrectbug-anchoringchanges.qml
          4 kB
        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)
            tmikola Tapani Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes