I've just started with QT and I found something I can't understand.

Why won't this work?

Qt Code:
  1. QTextStream out("test",QIODevice::ReadWrite);
  2. out<<"hello";
  3. QString string;
  4. out >> string;
To copy to clipboard, switch view to plain text mode 

Only "test" is added to the string. Couldn't find a way to append "hello" to the string.