I have a QString StrData = "abcd"
and I want get the Ascii
value in hex of that string and Vice Versa.
For example from "abcd" to "61 62 63 64"
and from "61 62 63 64" to "abcd"
I manage to get the Ascii value in hex but don't know how to get it back
Qstring StrData = "abcd";
Qstring HexStrData;
for (int i = 0; i < StrData.length(); i++) {
HexStrData.append(Qstring::number(StrData.at(i).unicode(), 16));
HexStrData.append(" ");
}