yeah you right it check if it a curve or not, then checking the closest point

go more done using the curve closest point and distance;
u can fined your selected curve.
Qt Code:
  1. if ( curve && dist < 10 ) // 10 pixels tolerance
  2. {
  3. d_selectedCurve = curve;
  4. d_selectedPoint = index;
  5. showCursor( true );
  6. }
To copy to clipboard, switch view to plain text mode