Hi, I am new to QML and so I am learning it by creating a simple tic tac toe game......

My problem is mentioned below:

I have used Grid to display all of the 9 rectangle blocks for tic tac toe game.....
Qt Code:
  1. Grid {
  2. x: 22
  3. y: 7
  4. anchors.horizontalCenter: parent.horizontalCenter
  5. anchors.verticalCenter: parent.verticalCenter
  6. columns: 3
  7. spacing: 3
  8.  
  9. Block11 {
  10. id: block11
  11. text: ""
  12. MouseArea {
  13. anchors.fill: parent
  14. }
  15. onClicked: [problem is here]
  16.  
  17. }
  18. Block12 {...}
  19. .
  20. .
  21. .
  22. .
  23. .
  24. Block33{.....}
To copy to clipboard, switch view to plain text mode 

I have problem in the onClicked section. When user clicks anyone of these blocks then an image "x.png" should be displayed on that block, but i am unable to do so....

I,ve tried following:
Qt Code:
  1. Block11 {
  2. id: block11
  3. text: ""
  4. MouseArea {
  5. anchors.fill: parent
  6. }
  7. onClicked: Image{
  8. source: "x.png"
  9. anchors.centerIn: parent
  10. }
To copy to clipboard, switch view to plain text mode 
but the above code gives an error.....i've also tried to find a way from many sites but was unsuccessful......please help.....