title: QChartView, RubberBand and right mouse button behaviour
body: <p>I have class, derived from <code>QChartView</code>, and I have enabled rubber band selection in it</p>
  
  <pre><code>MyChartView::MyChartView(QChart* chart)
  :QChartView(chart)
  {
      setMouseTracking(true);
      setInteractive(true);
      setRubberBand(RectangleRubberBand);
  }
  </code></pre>
  
  <p>Qt documentation says that </p>
  
  <blockquote>
    <p>If left mouse button is released and the rubber band is enabled then event is accepted and the view is zoomed into the rect specified by the rubber band. If it is a right mouse button event then the view is zoomed out.</p>
  </blockquote>
  
  <p>I don't want to have right button zoom out. I tried to override <code>mouseReleaseEvent</code></p>
  
  <pre><code>void MyChartView::mouseReleaseEvent(QMouseEvent *e)
  {
      if(e-&gt;buttons() == Qt::RightButton)
      {
          std::cout &lt;&lt; "my overriden event" &lt;&lt; std::endl;
          return; //event doesn't go further
      }
      QChartView::mouseReleaseEvent(e);//any other event
  }
  </code></pre>
  
  <p>but it does not print anything. </p>
  
  <p>How can I change this behaviour?</p>