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

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

XMLWordPrintable

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

      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.

        1. columnwidthtest.zip
          5 kB
          Frank Osterfeld
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes