I guess this must be a pretty easy question, but I cannot answer it without your help. I want to draw a semi-transparent background on the zoom rectangle of the QwtPlotZoomer. I have tried setting QPen and QBrush, but this only changed the rubberband line style, not the interior of the selection rectangle.

My code as of now is:
Qt Code:
  1. PlotZoomer::PlotZoomer(int xAxis, int yAxis, QwtPlotCanvas* canvas) : QwtPlotZoomer(xAxis,yAxis,canvas)
  2. {
  3. QBrush brush(Qt::darkBlue);
  4. QPen pen(brush,5,Qt::DotLine);
  5. setRubberBandPen(pen);
To copy to clipboard, switch view to plain text mode 

Thank you in advance!