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

Crash on setting Grid columns to 0

    XMLWordPrintable

Details

    • 3469fe05e4b04567598202fecc16c1decfb3ab63

    Description

      To reproduce, use the following code snippet:

          Grid {
              y: 20
              id: foo
              columns: 0
              spacing: 5
              Repeater {
                  model:1
                  Text {
                      text: "i am " + index;
                  }
      
              }
          }
      

      For a more sensible use case, columns could be set to a binding that depends on the width available for the item. If it evaluates to zero, crashes will happen.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            holmsted Lasse Holmstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes