动态修改 GridView 中Item的属性
GridView {
id: gameListGrid
model: ListModel {}
delegate: Item {
property string btText
}
}
function change() {
gameListGrid.currentIndex = 0
gameListGrid.currentItem.btText = "1111"
}
GridView {
id: gameListGrid
model: ListModel {}
delegate: Item {
property string btText
}
}
function change() {
gameListGrid.currentIndex = 0
gameListGrid.currentItem.btText = "1111"
}