ui->edtFileName->installEventFilter(ui->edtFileName);
keyBoard= new KeyboardEntryImpl(ui->edtFileName,NULL);
}

But in the bool exportData::eventFilter(QObject *obj, QEvent *ev)
{
}
You made a mistake here. You have install the event filter of edtFileName to edtFileName. If you want to use event filter in "exportData" class
then you should use function in this way
Qt Code:
  1. exportData->installEventFilter(ui->editFileName)
To copy to clipboard, switch view to plain text mode 

Now your code
bool exportData::eventFilter(QObject *obj, QEvent *ev)
{
}

should work fine