5
我想讓我的QML Grid
只要內容太長而無法顯示就會滾動。滾動QML網格
Grid {
objectName: "sidebarView"
id: sidebarGrid
flow: Grid.TopToBottom
columns: 1
spacing: 10
}
這是可能的只有幾個屬性添加到Grid
?
我想讓我的QML Grid
只要內容太長而無法顯示就會滾動。滾動QML網格
Grid {
objectName: "sidebarView"
id: sidebarGrid
flow: Grid.TopToBottom
columns: 1
spacing: 10
}
這是可能的只有幾個屬性添加到Grid
?
沒有,但你可以把一個Flickable圍繞電網
Flickable {
anchors.fill: parent
contentHeight: sidebarGrid.height
contentWidth: sidebarGrid.width
Grid {
objectName: "sidebarView"
id: sidebarGrid
flow: Grid.TopToBottom
columns: 1
spacing: 10
}
}
更多信息,flickable可以包裝大多認爲超出屏幕的東西。文字,圖片也可以做成可以滑動的。 – RajaRaviVarma 2012-01-18 19:10:13