Hi, I installed an event filter on a PushButton in MainForm; Pushbutton call an QFileDialog
in wich I can choose file. If I choose a file with doubleClick, QFileDIalog is closing but
start MYWidget::MouseMoveEvent.
Qt Code:
  1. loadButton->installEventFilter(myWidget1);
To copy to clipboard, switch view to plain text mode 

I tried to filter out only mosue events but filtering is not executed. If I chancge below
QMouseEvent* in QEvent*: it works and filters out some event but none QMouseEvent.
I tried to not remove filter on loadButton and don't change....
Qt Code:
  1. bool MyWidget::eventFilter(QObject* obj, QMouseEvent* e) {
  2. cout << "filter\n";
  3. //if (obj == w->loadTexture) {
  4. cout << e->type() << endl;
  5. if (( e->type() != QMouseEvent::None)) {
  6. cout << "filter out\n";
  7. return TRUE;
  8. }
  9. else {
  10. return FALSE;
  11. }
  12. }
To copy to clipboard, switch view to plain text mode 
thanks