Are you familiar with c++ and object oriented programming?

You should re-implement the mouse events.

Example:
Qt Code:
  1. void MyClass::mousePressEvent ( QMouseEvent * event )
  2. {
  3. //Do something with the event, accept it, and/or pass it to qwidget
  4. }
To copy to clipboard, switch view to plain text mode