Yeah, that was too fast. The right syntax should be
Qt Code:
  1. ui->edtFileName->installEventFilter(this);
To copy to clipboard, switch view to plain text mode 
in the c-tor of exportData.
Now i am capturing the mouse press event for the line edit object. But my only worry is that unnes=cessary control comes to this function on every event(apart from line edit events,which i wanted to do).
That's the sense of an event filter. No problem. You can alternative, instead of returning false, call the base class event handler.