float 转 16
QString str = "ABCDE";
float f = str .toFloat();
int i = *((int *)&f);
QString str_float = QString("%1").arg(i, 4, 16, QLatin1Char('0'));
qDebug() << "str_float: " << str_float ;
16 转 float
QString strHex = "0x2222";
int c = strHex.toInt(nullptr, 16);
float d = *(float*)&c;
QString str= QString("%1").arg(d);
qDebug() << "str: " << str;