title: How to implement MousePressEvent for a Qt-Designer Widget in PyQt
body: <p>I've got a Widget (QTabeleWidget, QLabels and some QButtons). It was built in Qt-Designer, and now I have to implement some things. For that I need the mousePressEvent.
  Usually I would write a subclass and write something like this: </p>
  
  <pre><code>def mousePressEvent(self, event):
      if event.button() == Qt.LeftButton:
          print "left"
      else:
          print 'right'
  </code></pre>
  
  <p>But I don't know how to do that for a Widget created in the Designer.
  I need it for the QTabeleWidget. Hope someone can help me. I tried to solve the problem with the help of google, but without success. 
  This site helped me many times, so I thought I'll give it a shot and ask.   </p>