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

GridView sometimes lays out one less column than expected.

XMLWordPrintable

      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" }
      }
      

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes