Hey there, I'm working on getting an event filter to work. It's supposed to capture all mouse events and then route them to all of it's children. I figured an efficient way to do this was to install an eventfilter which is coded like so:

Qt Code:
  1. bool UIEventFilter::eventFilter(QObject *obj,QEvent *e)
  2. {
  3. //capture all mouse events
  4. if(e->type() >= 2 && e->type() <= 5)
  5. {
  6. QList<QObject*> list(obj->children()); //get list of children
  7. int lsize = list.size(); //list size...
  8. for(int i=0;i<lsize;i++) //for each child
  9. list[i]->event(e); //hand it a copy of the event
  10.  
  11. return true;
  12. }
  13. return false;
  14. }
To copy to clipboard, switch view to plain text mode 

The problem is, it seems to only hand of mouseReleaseEvent()s. it *might* be handing off mouse-presses, but it's definitely not handing off mouse-move events.

If you can tell why I'd be quite appreciative if you let me know