PDA

View Full Version : QGraphicsItem move



Ichi
19th April 2013, 15:09
Hi
can somebody help me?
i want move item straight for nose :D

setPosition(mapToScene(QPointF(0,(-speed))));
but this move not good i try something like

setPosition(mapToScene(QPointF(this->rotation(),(-speed))));
Thanks

wysota
19th April 2013, 20:48
If you want an animation, have a look at QPropertyAnimation.