Hi follow what you say and now it's ok.
But if I can i would like to do another question.
My code is structured in this way:
Code:
QGraphicsScene *scene=new QGraphicsScene(0,0,360,640);
MyQgraphicsObject *myItem=new MyQgraphicsObject;
scene->addItem(myItem);
QGraphicsView *view=new QGraphicsView(scene);
QGraphicsItemAnimation *animation=new QGraphicsItemAnimation;
animation->setItem(myItem);
animation->setTimeLine(timer);
animation->setScaleAt(0.5,0.7,0.7);
timer->start();
It does the trasformation but it does trasformation from up left corner even I would like that It does trasformation from the center of my Item.
I try to use: setItem->setTransformOriginPoint(180,320);
but id doesn't run.
What could i do?
Thanks.