2010-02-06 9 views

Respuesta

2

Después de publicar la pregunta que me encontré la solución siguiente:

path = QPainterPath(...) # Path we are testing against 
    point = QPointF(...)  # Current position 

    stroker = QPainterPathStroker() 
    stroker.setWidth(10)  # Distance which we consider "on" the path 
    stroke = stroker.createStroke(path) 

    if stroke.contains(point): 
     # point is on path 
Cuestiones relacionadas