Qt Code:
  1. void function(QFile *file);
To copy to clipboard, switch view to plain text mode 

And pass your object pointer to that function. That will make it possible to edit it.