I want to create a gridview in QML. Each cell consisted of one image above and text below. How can I setup space between each cell and each rows in Gridview
You can set spacing by using cellWidth and cellHeight properties. As far as I know, there's no other spacing property.
Refer, https://forum.qt.io/topic/19775/solved-qml-gridview-and-spacing-between-children/2 for more information.
You can set GridView's cellWidth and GridView's cellHeight to some value and then inside its delegate width
and height
to cellWidth-8
and cellHeight-8
to get spacing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With