PDA

View Full Version : QwtPlotZoomer zooming off the plot canvas



BettaUseYoNikes
22nd June 2011, 16:41
I am using QwtPlotZoomer with a few graphs in my application but I am having a few problems. I do not want to allow the user to zoom off of the original canvas that is shown with the Plot on it, ie; zooming in to negatives.

Uwe
26th June 2011, 11:38
class YourZoomer: public QwtPlotZoomer
{
....

virtual void zoom( const QRectF &rect )
{
QwtPlotZoomer::zoom( rect & zoomBase() );
}
};
Uwe