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:
if ( curve && dist < 10 ) // 10 pixels tolerance { d_selectedCurve = curve; d_selectedPoint = index; showCursor( true ); }To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks