PDA

View Full Version : Item::contains problem with coordinates



alizadeh91
15th March 2012, 12:57
I have some QGraphicsPixmapItem in Scene and i want to use 'Contains' function to findout if mouse is on item. But the coordinates are locally on items . How can i translate them to Scene Coordinates?

mentalmushroom
16th March 2012, 07:19
maybe it worth to try isUnderMouse()

alizadeh91
16th March 2012, 08:18
Thanks That Worked :D