📅  最后修改于: 2022-03-11 14:44:49.880000             🧑  作者: Mango
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
}