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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        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.

        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