Replace
Qt Code:
  1. //QMessageBox::information(this,"asd","asdasd");
To copy to clipboard, switch view to plain text mode 
with
Qt Code:
  1. while (!reply->isFinished());
To copy to clipboard, switch view to plain text mode 
To wait while request is being processed.

MT.