found the solution for the second point too!
This is the code.
lPixmap.load("piece.png");
scene->addPixmap(lPixmap);
//add the second item
//and set its offset
test->setOffset(0,-6);
ui_graphicsView->setScene(scene);
ui_graphicsView->show();
ui_graphicsView->adjustSize();
QGraphicsScene *scene = new QGraphicsScene(this);
QPixmap lPixmap;
lPixmap.load("piece.png");
scene->addPixmap(lPixmap);
//add the second item
QGraphicsPixmapItem *test = scene->addPixmap(lPixmap);
//and set its offset
test->setOffset(0,-6);
ui_graphicsView->setScene(scene);
ui_graphicsView->show();
ui_graphicsView->adjustSize();
To copy to clipboard, switch view to plain text mode
Cheers!!
Bookmarks