I'm trying to adapt axes alignment code from the PlotMatrix playground example to my application. But It doesn't work as I expect when I add QwtPlotZoomer to the plots.

Problem is when I zoom into a plot with rectangle selection other plots axes aren't updated immediately. And Y axes stay out of alignment. But they are correctly updated when I resize the window.How can I correctly trigger an update on axis widgets?

Problem can be reproduced by adding a QwtPlotZoomer to `Plot` class in plotmatrix playground example. Code:

Qt Code:
  1. public:
  2. QwtPlotZoomer* zoomer;
  3. Plot( QWidget *parent = NULL ):
  4. QwtPlot( parent )
  5. {
  6. QwtPlotCanvas *canvas = new QwtPlotCanvas();
  7. canvas->setLineWidth( 1 );
  8. canvas->setFrameStyle( QFrame::Box | QFrame::Plain );
  9.  
  10. setCanvas( canvas );
  11.  
  12. zoomer = new QwtPlotZoomer(canvas);
  13. }
To copy to clipboard, switch view to plain text mode