I need to be able to convert a QString in this format:
"0x00 0x00 0x00 0x00"
To a byte array like this:
0x00,
0x00,
0x00,
0x00
I was able to do this in Visual Studio / C# like this:
byte[] bytes = string.Split(' ').Select(s => Convert.ToByte(s, 16)).ToArray();
However I am now using Qt / C++ and I need a way to do the same thing. What would be the easiest way to do this?