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

QML Item (or ListView) in a Window with anchors fill behave strangely if height is not specified

    XMLWordPrintable

Details

    • Windows

    Description

      Please find the attached sample. Item is having listView with 5 elements.
      Elements are not rendered properly if height for Item is not set even anchors.fill is specified.

      1. Execute the attached sample, entries are not displayed properly. But Height value is displayed correctly i.e. 480. So, all values are calculated correctly.
      2. Now, try by uncomment line no.27 i.e. set height attribute for Item, even setting height=1 will work
      3. Then everything will work fine and height value is still unchanged(480)

      According to me, if anchors.fill is specified, there should not be need to specify height attribute.

      Attachments

        For Gerrit Dashboard: QTBUG-72442
        # Subject Branch Project Status CR V

        Activity

          People

            teemu.holappa Teemu Holappa
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes