PDA

View Full Version : zoombase issues still



risa
8th August 2009, 00:20
So I've read all the posts I could find about the ZoomBase and I still can't get it to work properly. I'm new to Qwt and using the latest version of both Qt and qwt. I'm writing a RTLinux application and thought Qwt maybe had some shortcuts. I've taken the randomplot, incrementalplot, etc. classes exactly from the realtime_plot example (with a few extra methods) to make a scatterplot of data points as they are generated. When I initially create the plot, I set the axes and the zoomer is constructed exactly like in the example. I set my own default limits before making the zoomer, and that works fine. I have this method to take user input and change the axes butright clicking to zoom all the way out gives me the my default axis limits, not the ones the user set. I can't call any of the zoomer functions without it crashing on me!

void RandomPlot::setAxes(double xmin, double xmax, double ymin, double ymax) {
setAxisScale(xBottom, xmin, xmax);
setAxisScale(yLeft, ymin, ymax);
replot();

// zoomer->setZoomBase crashes the whole program here, why?

}

jmsbc
11th August 2009, 21:38
you should post your code, but it's probably crashing b/c zoomer is not instantiated