Hi,

I'm using a QwtPlotGrid on my chart and so far it worked just as expected. But now I would like to draw the y-axis on the right hand side and suddenly the alignment of the grid doesn't fit anymore.
I added two screenshots. The first shows the expected result where the grid is aligned to the labels of the y-axis. The second shows the unexpected result.
stockchart2.jpgstockchart1.jpg

What I'm doing to switch the y-axis to the rhs is the following:

Qt Code:
  1. enableAxis(QwtPlot::yRight, true);
  2. enableAxis(QwtPlot::yLeft, false);
To copy to clipboard, switch view to plain text mode 
and a bit later when I have created the curve:
Qt Code:
  1. curve->setYAxis(QwtPlot::yRight);
To copy to clipboard, switch view to plain text mode 
That's all and I'm wondering if I'm doing something fundamentally wrong..? I had a look at
Qt Code:
  1. QwtPlotGrid::setYDiv()
To copy to clipboard, switch view to plain text mode 
but that didn't get me any further.

Any help would be appreciated.