PDA

View Full Version : Out of range detection



zgulser
6th February 2009, 08:02
Hi,

I have a moving object (QGraphicsItem) on the scene. I need to detect if the item is out of scene range or not. I couldn't find a proper solution. Can anybody help?

Regards

Lykurg
6th February 2009, 08:27
item->scene()->sceneRect().contains(item->scenePos())

zgulser
6th February 2009, 09:32
Thanks

Regards.