I have a QString
string = "131865EDC62E4AC5131865EDC62E4AC5"
which is 16 hex-numbers. I need to convert this to something like
const unsigned char s[] = {0x13, 0x18, 0x65, 0xED, 0xC6, 0x2E, 0x4A, 0xC5, 0x13, 0x18, 0x65, 0xED, 0xC6, 0x2E, 0x4A, 0xC5}
How should I do this? I tried different methode like QString::toInt, QString::toUlong, QString::toLatin1
, but they don't do what I want.