Hi all,
I had implemented the following object :

class BaseEntity(QtGui.QGraphicsItem):

and overwrite the following method:

def hoverEnterEvent(self, event):
self.setHiglight() #this is my function to define the color
self.update()

def hoverLeaveEvent(self, event):
self.setColor() #this is my function to define the color
self.update()

this way dose not work very well if I have some boundingRect() that intersect.

For exsample in case of two circle if I define a circle of radius 10 in position 0,0
and then a circle radius 20 in position 0,0,
the first circle is not higlited when I pass over it with the mouse ..

I try to set the QtGui.QGraphicsItem.ItemClipsToShape flag ... but it do not work at all ..


any idea on how to solve the this problem ?

Regards,
Matteo