📜  qt 从 qstring 获取十六进制值 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:49.880000             🧑  作者: Mango

代码示例1
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
}