PDA

View Full Version : make item selected exatcly where drawing is present



prasad.ece2
20th February 2014, 05:50
hi, i have an customized QGraphicsItem as in attachment, the item is selectable. due to boundingRect() that item is getting selected when i click on some regions where item is not drawn (ex in between grid on road & cross above to the grid as that region is included in boundingRect) . how can i implement my item to be selected only when i click exactly where the drawing is present (in my case item has to select when i click on grid or cross above to the grid only).

anda_skoa
20th February 2014, 09:15
QGraphicsItem::shape()

Cheers,
_