Thanks.....

It is working fine.

QApplication::installEventFilter(QObject*) did the work for me.