PDA

View Full Version : To place images to a grid dynamically



athulms
28th July 2011, 08:35
How can i place images dynamically in a grid.
Can i place an image at a specific location on the grid (at the 7th row 8th column?? like grid[8][9].??)
I have used the code but i cant change it dynamically

import Qt 4.7
Rectangle
{
width:440
height:440
color:"transparent"
Grid
{
rows:11;columns:11
Repeater{model:121
Rectangle{
width:40;height:40;
opacity:1
color: "transparent"

Image{
source:"content/letterA_2x.png"
}
}
}
}
}