It won't be enough if I just do sth like this?:
Qt Code:
  1. QDataStream out(&block, QIODevice::WriteOnly);
  2. //serverfiles is a QStringList
  3. out << (out,serverfiles);
  4. serverSocket->write(block);
To copy to clipboard, switch view to plain text mode 

This code is in slot which starts thx to encrypted signal.