Hi I have solved my problem now

Thanks for the help... I think. :/

It was very easy. I just converted the string to QString using
Qt Code:
  1. line.c_str()
To copy to clipboard, switch view to plain text mode 

Thanks very much