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

Column items inside repeater cannot use column width (Qt 5.12.0 regression)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.0
    • None
    • Official 5.12.0 packages for macOS and linux64

    Description

      When using a Column with a repeater and using the column's width to size the items inside the column, the result is item with size (0,0).

      When using a common helper property for both Column and delegate width, the problem doesn't occur.

      Column {
          id: column
          width: 200
      
          Repeater {
              model: ...
              Item { width: column.width; ... }
          }
      }

      If I don't use a repeater and "unfold" the items, the bug does not occur.

      This seems to be a regression: It worked fine up until Qt 5.11.3 and is broken in Qt 5.12.0. 

      Find a minimal test case attached.

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              frank.osterfeld Frank Osterfeld
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: