This part of the code:
Qt Code:
  1. QLineEdit *isQLineEdit = static_cast<QLineEdit*>(call_object);
  2. if(call_object != isQLineEdit)
  3. return false;
To copy to clipboard, switch view to plain text mode 

makes no sense.
You are getting an address and then ask if the address you got is the address you got,and of course they are the same!
You have to check not the address against it self, but against the address of the QLineEdit you want to check!
That line edit is defined somewhere in your application probably in a ui file (if you use them).
Have a look at the post I posted where I suggested to you to do that and you will see my remark:
"where pLineEdit is the pointer to the clicked line edit."