Well, then it is nonsense. Simply do something like:
Qt Code:
  1. buf += buf;
To copy to clipboard, switch view to plain text mode 
. If you still want to read the file again, use QIODevice::reset().