title: How to detect mouse click on QLineEdit
body: <p>In my <code>QWidget</code> there are some <code>subwidgets</code> like a <code>QLineEdit</code> and <code>QLabels</code>. I can easily check if my mouse is over a QLabel and if it was clicked on the right button. Not so on <code>QLineEdit</code>.
  I tried to subclass <code>QLineEdit</code> and re-implement the <code>mouseRelease</code>, but it is never called.
  The <code>findChild</code> method is to get the corresponding widget out off my UI.</p>
  
  <p>How do I get the <code>mouseRelease</code> and whether it's left or right mouse button in a <code>QLineEdit</code>?</p>
  
  <pre><code>void Q_new_LineEdit::mouseReleaseEvent(QMouseEvent *e){
      qDebug() &lt;&lt; "found release";
      QLineEdit::mouseReleaseEvent(e);
  }
  
  m_titleEdit = new Q_new_LineEdit();
  m_titleEdit = findChild&lt;QLineEdit *&gt;("titleEdit",Qt::FindChildrenRecursively);
  </code></pre>
  
  <p>Clicks on labels are recognized, but the click on <code>QLineEdit</code> is not, like below:</p>
  
  <pre><code>void GripMenu::mouseReleaseEvent(QMouseEvent *event){
  
      if (event-&gt;button()==Qt::RightButton){ 
  
          //get click on QLineEdit 
          if (uiGrip-&gt;titleEdit-&gt;underMouse()){
              //DO STH... But is never called
          }
  
          //change color of Label ...
          if (uiGrip-&gt;col1note-&gt;underMouse()){
              //DO STH...
          }
      }
  </code></pre>