What's the difference between NULL and 0x00?

You have
Qt Code:
  1. char buff[2];
To copy to clipboard, switch view to plain text mode 
and then you read some unknown number of characters. Are you sure there are only two to read?

Are you sure, that all the characters (whole frame) are read before you use QTextBrowser::append() ? If not, you'll see some characters in new line every time you run this code.