I want to make my QML Grid
scrollable as soon as the content is too long for it to display.
Grid {
objectName: "sidebarView"
id: sidebarGrid
flow: Grid.TopToBottom
columns: 1
spacing: 10
}
Is that possible with just a few properties added to the Grid
?
No, but you can just put a Flickable around the Grid
Flickable {
anchors.fill: parent
contentHeight: sidebarGrid.height
contentWidth: sidebarGrid.width
Grid {
objectName: "sidebarView"
id: sidebarGrid
flow: Grid.TopToBottom
columns: 1
spacing: 10
}
}
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