View Full Version : Painting and collision detection

18th October 2006, 06:39
I have a graphics item. While painting I want to paint the whole item, but while collision detection, I want a smaller part of the item to be used . Is ther some way to do it ? If i set the bounding rect as a smaller part of the item and paint the whole item, behaviour is undefiined.

I have a scene where items's boundaries overlap. I dont want collision detection to return true if ONLY boundaries overlap. hence the above paint confusion

any help :confused:

18th October 2006, 08:57
For collision detection the QGraphicsItem::shape() method is used.