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

GridView sometimes lays out one less column than expected.

    XMLWordPrintable

Details

    Description

      Presumably due to rounding somewhere the snippet below will give 8 columns instead of the expected 9.

      import QtQuick 2.0
      
      GridView {
          width: 400
          height: 200
          cellWidth: width/9
          cellHeight: height/2
      
          model: 18
          delegate: Rectangle { objectName: "delegate"; width: 10; height: 10; color: "green" }
      }
      

      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)
            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes