QML grid scrolling

I want to make scrollable QML Gridas soon as the content is too long to display.

Grid {
     objectName: "sidebarView"
     id: sidebarGrid
     flow: Grid.TopToBottom
     columns: 1
     spacing: 10
}

Is this possible with a few properties added to Grid?

+5
source share
1 answer

No, but you can just put 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
    }
}
+10
source

All Articles