Maybe with: bool xxx::eventFilter(QObject *object, QEvent * event ) { if(object==??? and event->type()== ???){ } } sorry more experience i do not have with edit a view. But hope that the way help.