Qt mendapatkan nilai hexa dari qstring

const QString str = QLatin1String("AA110011");
bool ok;
const unsigned int parsedValue = str.toUInt(&ok, 16); //16 because hex is base 16
if (!ok) {
    //Parsing failed, handle error here
}
Sorann