Quote Originally Posted by talk2amulya View Post
wont this work for u?

Qt Code:
  1. QDataStream & QDataStream::operator<< ( const char * s )
  2. This is an overloaded member function, provided for convenience.
  3. Writes the '\0'-terminated string s to the stream and returns a reference to the stream.
To copy to clipboard, switch view to plain text mode 
I tried this. After some more searching I realized my problem.
This is what I did:
Qt Code:
  1. string myString;
  2. myString.c_str;
To copy to clipboard, switch view to plain text mode 

Instead of:
Qt Code:
  1. string myString;
  2. myString.c_str();
To copy to clipboard, switch view to plain text mode 

So now it works. But thanks for the tip. It made me search a little harder.