Is your mainwidget derived from QMainWindow ??
Also why do u want to call other eventfilter from ur filter ?
just return true or false