QtGraphs LineSeries onClicked signal gives integer coordinates?
-
Hello!
Just made a little demo on QtGraphs LineSeries, but the onClicked signal gives integer coordinates?
E.g. it givesQPoint(2, 3)instead of float coordinates.
It means thisonClickedsignal can't be combined with other functions, likefindto get the point index after the user clicked a point.TBO I even don't know what's the use of it if it's integer.
P.S. I think it would be nice if there's a
fuzzyFindfunction, e.g. user clicks at a place a bit away from a point (instead of ON the point), andfuzzyFindgets the point index. It would save efforts for the user.
Thanks!