PDA

View Full Version : QGraphicsItem move question



mhoover
7th July 2006, 00:42
The GraphicsView looks great!

Now I'm trying to figure out how much work it's going to take to port to the QCanvas stuff to QGraphicsView.

In Qt 4.2 how does one tell a QGraphicsItem to move by a certain amount per update?
I'm looking for something equivalent to setXVelocity() in the QCanvasItem class.

I didn't see anything that seemed to resemble it in the docs:
http://doc.trolltech.com/4.2/qgraphicsitem.html

jacek
7th July 2006, 01:08
I guess you have another class for this: http://doc.trolltech.com/4.2/qgraphicsitemanimation.html

Bitto
7th December 2006, 20:01
You can find some hints and tricks here:

http://doc.trolltech.com/4.2/graphicsview-porting.html