Pixmap *p1 = new Pixmap(QPixmap(":/digikam.png")); Pixmap *p2 = new Pixmap(QPixmap(":/akregator.png"));.....QGraphicsScene scene(0, 0, 400, 300); scene.setBackgroundBrush(scene.palette().window()); scene.addItem(p1); scene.addItem(p2);.... QStateMachine machine; QState *state1 = new QState(&machine); QState *state2 = new QState(&machine); machine.setInitialState(state1);....state1->assignProperty(p1, "pos", QPointF(68, 185)); state1->assignProperty(p2, "pos", QPointF(168, 185)); state1->assignProperty(p3, "pos", QPointF(268, 185));....
QGraphicsSceneItem *item = new QGraphicsSceneItem(&scene);scene.AddItem(new QGraphicsPixmapImem(item, "img1.png"));scene.AddItem(new QGraphicsPixmapImem(item, "img2.png"));
QList<QGraphicsItem *> items;QGraphicsPixmapItem *item1 = new QGraphicsPixmapItem( QPixmap("img1.png"), group );item1->setPos(0,60);scene->addItem( item1 );items << item1;...QGraphicsItemGroup *group = scene->createItemGroup ( items );//Дальше в QStateMachine задаешь координаты только group