The docs say:
QTextStream::QTextStream ( const QByteArray & array, QIODevice::OpenMode openMode = QIODevice::ReadOnly )
Constructs a QTextStream that operates on array, using openMode to define the open mode. The array is accessed as read-only, regardless of the values in openMode.
You have to use a different constructor to create an RW stream:
Qt Code:
  1. QString buffer( "test" );
  2. QTextStream out( &buffer, QIODevice::ReadWrite );
  3. out << "hello";
  4. QString string;
  5. out >> string; // == "testhello"
To copy to clipboard, switch view to plain text mode 

If you just want to append a string use QString::operator+() or QString::append().