I was trying to use the QwtSeriesData (Qwt6.0.2) and found some confusion with boundingRect().
I have a data like below
Qt Code:
  1. class MyData : public QwtSeriesData<QPointF>
  2. {
  3. public:
  4. virtual size_t size() const
  5. {
  6. return 200;
  7. }
  8. virtual QPointF sample( size_t i ) const
  9. {
  10. QPointF point(i*10,i%2 ? 300 : 500);
  11. return point;
  12. }
  13. virtual QRectF boundingRect() const
  14. {
  15. QRectF r = qwtBoundingRect(*this); //<--this produce left image
  16. //QRectF r(0,0,2000,1000); <-- this produced right image
  17. return r;
  18. }
  19. };
To copy to clipboard, switch view to plain text mode 
Screen Shot 2012-01-11 at 10.37.11 PM.pngScreen Shot 2012-01-11 at 10.37.42 PM.png

It seems like the boundingRect is giving some scale factor to the real data. Is this a bug? by the way I set the QwtPlot to be autoscaling.

baray98