title: connecting a basic signal mousepress
body: <p>I am using <code>QCustomPlot</code> where I am trying to write a code that will rescale my axes once the user press the mouse and drags. I did: </p>
  
  <pre><code>   connect(ui-&gt;plot, SIGNAL(mousePress(QMouseEvent *event)), this,  SLOT(mousedrag(QMouseEvent*))); 
  </code></pre>
  
  <p>and I keep getting:</p>
  
  <blockquote>
    <p>QObject::connect: No such signal QCustomPlot::mousePress(QMouseEvent
    *event)</p>
  </blockquote>
  
  <p>But <code>mouseWheel(QWheelEvent*)</code> and both <code>mouseWheel</code> and <code>mousePress</code> have signals declared in the <code>QCustomPlot</code> library.</p>
  
  <p>Where am I going wrong? Also if someone has a better signal to trigger my function <code>mousedrag(QMouseEvent*)</code> which rescales the the y2 axis according to y1 axis I am open for suggestions.</p>