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

QML Item.childrenRect does not work correctly when creating an item.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.0
    • 4.7.0
    • None
    • Qt 4.7 in 32-bit Linux i686 laptop
    • b18a343cc63f93a8e97a8c6c623e56a666775b57

      See the attached code.
      Setting Items width to childrenRect.width is not working with two children: icon and text that do not have explicit width set and that are anchored together. After changing the Text.text later the width seems to be set correctly.

        1. screen1.png
          screen1.png
          15 kB
        2. qtg_large_info.svg
          3 kB
        3. childrenrectbug.qml
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            brasser Michael Brasser (closed Nokia identity) (Inactive)
            tmikola Tapani Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes