I'm trying to test whether a given point (x, y) is located on or close to the outline of a QGraphicsPathItem.
Using QGraphicsItem.contains() or .collidesWithItem() / Path() will not do: those also return True if the point is contained within the area on the interior of the path, while I want to test only for points on the outline. How can I accomplish that?