You have to set utf8 as the default for decoding literal strings to QString with
Qt Code:
  1. QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf8"));
To copy to clipboard, switch view to plain text mode 
preferably before you create any widget.