Unsolved Why there is no "spacing" property for gridview ?
-
for listview there is "spacing" property by which we can spacify distance between two delegates.
for example below codeListView{ spacing: 100 model:10 anchors.fill: parent delegate: Rectangle{ height : 50;width: 50 color: "green" } }
but for gridview there is "spacing" property as such. how can spacify the space between the delegates then?
GridView{ anchors.fill: parent height: 100 width: 500 model:10 //spacing property not there delegate: Rectangle{ height : 50;width: 50 color: "green" } }
-
@divaindie
Google:qml gridview spacing
On this forum, although old doubtless still works: https://forum.qt.io/topic/19775/solved-qml-gridview-and-spacing-between-children
Or: https://stackoverflow.com/questions/37313843/how-to-create-spacing-in-gridview
cellWidth/Height: https://doc.qt.io/qt-5/qml-qtquick-gridview.html#cellWidth-prop, https://doc.qt.io/qt-5/qml-qtquick-gridview.html#cellHeight-prop