PDA

View Full Version : overriding QwtSeriesData<QPointF>::boundingRect



hml
6th March 2012, 15:24
Hi,

I am overriding this method with:

return QRectF(
QPointF(...),
QPointF(...)
);

Looking at the returned rectangle, I see
(xp=2446578.0, yp=193.72, w=6793.0, h = -193.72)

The intention is that the y axis goes from 0 to 193.72. That doesn't work with this rectangle.
The resulting QwtPlotCurve shows a y axis with a strange range [0,1600]

changing h to 0 gives a more reasonable output, but still from 50 to 300.

how is the logic work on top of the bounding rectangle?

Thanks,

Uwe
6th March 2012, 15:36
return QRectF( QPointF(...), QPointF(...) ).normalized();Uwe

hml
6th March 2012, 16:57
excellent thanks