What about if you try to use qDebug() for outputting?

Qt Code:
  1. #include <QtDebug>
  2. qDebug() <<"1."<<ts.readAll()<<'\n'<<"2."<<s;
To copy to clipboard, switch view to plain text mode