I have a CustomItem that subclasses QGraphicsItem and draw a pie slice with
painter->drawPie(rect, 0, 45 * 16);
Now I want to handle the mouse click event only when the mouse is over the slice, not over the boundingRect.
How can I do it?
I have a CustomItem that subclasses QGraphicsItem and draw a pie slice with
painter->drawPie(rect, 0, 45 * 16);
Now I want to handle the mouse click event only when the mouse is over the slice, not over the boundingRect.
How can I do it?
Bookmarks