QByteArray text = QByteArray::fromHex("517420697320677265617421");
text.data(); // returns "Qt is great!"
http://stackoverflow.com/questions/1258718/hex-to-string-conversion-c-c-qt
http://www.qtcentre.org/archive/index.php/t-18719.html
QString string = (compressed_string2.c_str());
QString res = string.toAscii().toHex();
qDebug() << res;