Hello,

I want to define a fixed step size for my x-scale (step=1). I can do this by using setAxisScale() method. But after zooming it's lost.
Here is my example code:

Qt Code:
  1. //create a plot
  2. QwtPlot plot;
  3.  
  4. //create a curve
  5. double x[] = {0,1,2,3,4,5,6,7,8,9,10};
  6. double y[] = {1,2,3,2,1,0,1,2,3,2,1};;
  7. curve.setRawSamples(x, y, 11);
  8. curve.attach(&plot);
  9.  
  10. //create zoom
  11. QwtPlotMagnifier zoom = QwtPlotMagnifier(plot.canvas());
  12. zoom.setAxisEnabled(QwtPlot::xBottom,true);
  13.  
  14. //set scale
  15. plot.setAxisScale(QwtPlot::xBottom,0,10,1);
  16.  
  17. //show plot
  18. plot.show();
To copy to clipboard, switch view to plain text mode 

What I want:
- fixed major ticks with a step=1, independant if I zoomed in or zoomed out

Is there an easy way to do that with just calling a method?
If not, how can I get around this the best way? Reimplementing ScaleEngine?

regards
Johannes