What is the correct way to convert losslessly between std::string and QByteArray... mostly for the purpose of handling binary data?
I\'m using:
QByte
QByteArray datagram; datagram.append(ui->lineEdit_sendData->text());