摘要:
QString getTimeFromSec(int sec) { if(sec<0) return "0:0:0"; int second = sec%60; int min = (sec/60)%60; int hour = sec/3600; QString str = QString("%1 阅读全文
摘要:
union IEEE_Packet { float f; quint8 buf[4]; }; IEEE_Packet packet;packet.buf = ""; packet.f;将 编码赋值给 buf ,其中 f 即为想要得到的 值 阅读全文