PDA

View Full Version : To find X, Y position of a pixmap item in Graphicsscene



augusbas
21st January 2011, 07:05
Hi all,

i have added a QGraphicsPixmapItem to Qgraphicsscene.

Now i need to know the X,Y position of the Pixmap Item located in the graphics scene. how do i get it..

i will use it in setPos(x,y) to move the pixmap item...

Regards,
Augus

tbscope
21st January 2011, 07:08
http://doc.qt.nokia.com/4.7/graphicsview.html#scene-coordinates

Lykurg
21st January 2011, 07:09
What's about QGraphicsItem::pos()? In Qt classes you always have setFoo() and foo().

EDIT: ah, sceene coordinates...