16进制转换成字符串
怎么把16进制数转换成字符串,比如“31”转成“1”,“B0 E6” 转成汉字“版” 16进制转字符串
[解决办法]
QString::toInt(16);
[解决办法]
{
byte arr[4] = {0};
arr[0] = 0x31;
arr[1] = 0xB0;
arr[2] = 0xE6;
arr[3] = 0;
QString ss = QString::fromLocal8Bit((char*)arr);
QMessageBox::information(this, "Title", ss);
}