I am having the following codes::

Qt Code:
  1. char * size;
  2. QString str;
  3. str.sprintf("Size %s",value);
To copy to clipboard, switch view to plain text mode 

How to copy the str value to size??? please help me