摘要: 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 阅读全文
posted @ 2020-11-18 08:31 eric_zw 阅读(763) 评论(0) 推荐(0) 编辑
摘要: union IEEE_Packet { float f; quint8 buf[4]; }; IEEE_Packet packet;packet.buf = ""; packet.f;将 编码赋值给 buf ,其中 f 即为想要得到的 值 阅读全文
posted @ 2020-11-18 08:28 eric_zw 阅读(304) 评论(0) 推荐(0) 编辑