[PyQt] QGraphicsItem absolute position
TheLonelyStar
nabble2 at lonely-star.org
Mon Jul 13 15:41:21 BST 2009
Hi,
I have a QGraphicsScene to which I add QGraphicsItems using
newItem=QtGui.QGraphicsEllipseItem(event.scenePos().x()-10,event.scenePos().y()-10,20,20)
where event is the event I got from the mousePressEvent for QGraphicsScene.
Now I want to retrieve this exact position.
newitem.pos() and newItem.scenePos() both return (0,0).
How can I get the absolute position?
Thanks!
nathan
--
View this message in context: http://www.nabble.com/QGraphicsItem-absolute-position-tp24463034p24463034.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list