pixmap
( 0,
0 ) = new QPixmap( "Image00.png" );
pixmap
( 0,
1 ) = new QPixmap( "Image01.png" );
pixmap
( 0,
2 ) = new QPixmap( "Image02.png" );
.
.
.
pixmap( 9,
9 ) = new QPixmap( "Image99.png" );
pixmapItem( 0, 0 ).setPixmap( *pixmap( 0, 0 ) );
pixmapItem( 0, 0 ).setPos( -370, -370 );
pixmapItem( 0, 1 ).setPixmap( *pixmap( 0, 1 ) );
pixmapItem( 0, 1 ).setPos( -296, -370 );
pixmapItem( 0, 2 ).setPixmap( *pixmap( 0, 2 ) );
pixmapItem( 0, 2 ).setPos( -222, -370 );
.
.
.
pixmapItem( 9, 9 ).setPixmap( *pixmap( 9, 9 ) );
pixmapItem( 9, 9 ).setPos( 296, 296 );
QPixmap *pixmap( 10, 10 );
pixmap( 0, 0 ) = new QPixmap( "Image00.png" );
pixmap( 0, 1 ) = new QPixmap( "Image01.png" );
pixmap( 0, 2 ) = new QPixmap( "Image02.png" );
.
.
.
pixmap( 9, 9 ) = new QPixmap( "Image99.png" );
QGraphicsPixmapItem pixmapItem( 10, 10 );
pixmapItem( 0, 0 ).setPixmap( *pixmap( 0, 0 ) );
pixmapItem( 0, 0 ).setPos( -370, -370 );
pixmapItem( 0, 1 ).setPixmap( *pixmap( 0, 1 ) );
pixmapItem( 0, 1 ).setPos( -296, -370 );
pixmapItem( 0, 2 ).setPixmap( *pixmap( 0, 2 ) );
pixmapItem( 0, 2 ).setPos( -222, -370 );
.
.
.
pixmapItem( 9, 9 ).setPixmap( *pixmap( 9, 9 ) );
pixmapItem( 9, 9 ).setPos( 296, 296 );
To copy to clipboard, switch view to plain text mode
Bookmarks