PDA

View Full Version : Location of QGraphicItem!!



rachana
1st February 2007, 15:13
Hi all,

Is there any way to locate QGraphicItem in terms of location (x,y) and angle? Say I have
a app with QGraphicItems and the user moves & rotates them. how to know the location and angle of items currently?

Rachana

wysota
1st February 2007, 15:46
QGraphicsItem::scenePos() and QGraphicsItem::sceneMatrix()

Bitto
2nd February 2007, 21:20
This might also help.

http://qtdeveloper.net/archives/2006/12/15/interact-with-volatile-graphics-items/