I would like to build up a QGraphicsScene using a 10x10 arrangement of QGraphicsPixmapItems (a chessboard with a border). Something like this:

Pseudocode:

Qt Code:
  1. QPixmap *pixmap( 10, 10 );
  2. pixmap( 0, 0 ) = new QPixmap( "Image00.png" );
  3. pixmap( 0, 1 ) = new QPixmap( "Image01.png" );
  4. pixmap( 0, 2 ) = new QPixmap( "Image02.png" );
  5. .
  6. .
  7. .
  8. pixmap( 9, 9 ) = new QPixmap( "Image99.png" );
  9.  
  10. QGraphicsPixmapItem pixmapItem( 10, 10 );
  11. pixmapItem( 0, 0 ).setPixmap( *pixmap( 0, 0 ) );
  12. pixmapItem( 0, 0 ).setPos( -370, -370 );
  13. pixmapItem( 0, 1 ).setPixmap( *pixmap( 0, 1 ) );
  14. pixmapItem( 0, 1 ).setPos( -296, -370 );
  15. pixmapItem( 0, 2 ).setPixmap( *pixmap( 0, 2 ) );
  16. pixmapItem( 0, 2 ).setPos( -222, -370 );
  17. .
  18. .
  19. .
  20. pixmapItem( 9, 9 ).setPixmap( *pixmap( 9, 9 ) );
  21. pixmapItem( 9, 9 ).setPos( 296, 296 );
To copy to clipboard, switch view to plain text mode 

But there doesn't seem to be any way to make arrays of QPixmaps or arrays of QGraphicsPixmapItems; at least not anywhere that I've seen in the docs.

Am I missing something?

Or could anyone suggest a workable line of attack?