title: Tracking mouse cursor in QWidget
body: <p>I am using the <code>mouseMoveEvent</code> to track the position of the mouse cursor in a simple QT app. My problem is that I want the <code>mouseMoveEvent</code> to fire only when the cursor is in a 400x400 <code>QWidget</code>. Right now it is firing no matter where the mouse is. Here is my code...</p>
  
  <pre><code>void IPA2::mouseMoveEvent(QMouseEvent * event) {
       cout &lt;&lt; event-&gt;x() &lt;&lt; endl;
       cout &lt;&lt; event-&gt;y() &lt;&lt; endl;
  }
  </code></pre>
  
  <p><code>IPA2</code> is the name of my class. The ui was created in designer mode.</p>