I'd prefer something like that (not tested):
Qt Code:
QString stringToDecode; int pos = 0; while((pos=rx.indexIn(stringToDecode, pos))!=-1){ uint val = rx.cap(1).toUInt(0, 16); }To copy to clipboard, switch view to plain text mode
After this "stringToDecode" should contain the converted string.





Reply With Quote
Bookmarks