I have defined a grid like below using repeater
Grid {
id: grid
x: 8;y:8
clip: true
smooth: false
rows: 6; columns: 6; spacing: 3
Repeater {
id:table
model:36
Cell { //an item created by me
clip:true
color:"blue"
}
}
}
Cell2{ //another cell created by me
id:computer
x: table.itemAt(0).horizontalCenter; //Not working
y: table.itemAt(0).verticalCenter; //Not working
z:5
cellColor: "yellow"
opacity:0
}
I got error TypeError: Result of expression ‘grid.gridTable.itemAt(0)’ [null] is not an object.
↧