Hi,

does Qwt provide a function that returns the number of currently visible points of a curve (depending on the scale of x and y).
I didn't find any in the documentation. What's the best way to get it?

I would use QwtScaleDiv::lowerBound() and QwtScaleDiv::upperBound() for x and y and parse over all data of a curve
and check if QwtScaleDiv::contains(double x-value) and QwtScaleDiv::contains(double y-value).

Is there a better way?

Regards
Stefan