PDA

View Full Version : QGraphicsItem's hover event problem



lni
27th July 2011, 11:22
Hi,

I have several different QGraphicsItems in the scene. I want to receive some hover event for a particular type of object, so I did setAcceptHoverEvents( true ) on it, while all other types have setAcceptHoverEvents( false ).

The problem is when I move mouse around the scene, all types of items call QGraphicsItem::collidesWithPath, which in turn call QGraphicsItem::shape().

How do I stop those calls for items that do not accept hover event?

Thanks!

lni
29th July 2011, 05:51
Anyone please?