PDA

View Full Version : QGraphicsItem covering another



fenix
28th April 2009, 14:34
Hello,

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.

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