QFile cur_file(path);
if(!cur_file.open(QIODevice::ReadOnly)) return;
QDataStream in
QByteArray bt;
bt.resize(6);
in.readRawData(bt.begin(),6);//读6个字节的数据,存入QByteArray
quint8 *data = (quint8*)bt.data();//将有符号的char转成quint8
quint64 stamp = (((quint64)data[0] << 40) | ((quint64)data[1]<< 32) | ((quint64)data[2] << 24) | ((quint64)data[3]<< 16) |((quint64)data[4] << 8) | ((quint64)data[5])) ;//将6个字节的数据转换成quint64
12-08
2万+
05-18
1415