Hello,

I have qgraphicspathitem which is a cubic QPainterPath.
It is selectable with the mouse by clicking on it.
The problem is the path is selected when clicking anywhere on the red area in the image (so the shape is "closed" by connecting the start and end directly it seems), not only when clicking on the path directly.
painterpath1.pngpainterpath2.png
I reimplemented the qgraphicspathitem::shape() function and return the exact path that is also drawn.

I also tried to reimplemented the contains function and calculate it myself, but that one is never called.

How can I achieve a cubic path, that is only selected when clicking exactly on the path?

thanks
veio