QwtSeriesData::sample() is QwtSeriesData::size() times called regardless what your axes ranges are or what values you return. In your example it should be 1024 for both situations.
Note, that you are returning points only. If you want to translate your points into a x1-x2, y representations, you need an item similar/derived from QwtPlotHistogram.
Uwe
Bookmarks