View Full Version : QGraphicsItem covering another

28th April 2009, 14:34

i have two polygon graphicsitems on a graphicsscene.
the polygons have a border.
in some cases one polygon completely covers the other polygon.
is it possible to make just the borders of the polygons clickable,
so that i can select the other underlying polygon?
in other words, make the fillarea of the polygon not accesible for mouseclicks, just the border.

28th April 2009, 14:55
You need to reimplement QGraphicsItem::shape () and give only the border of your item back.