标签:直接 class code unicode cas ilo static ase nullptr
QString str = "0x1A";
int value = str.toInt(nullptr, 16);
uint8_t tmp = static_cast<uint8_t>(str.toUInt(nullptr, 16));
QByteArray ar = str.toLatin1().toHex();
标签:直接 class code unicode cas ilo static ase nullptr
原文地址:https://www.cnblogs.com/ramlife/p/11858896.html