Qt获取uuid
代码:
#include <QUuid> QUuid id = QUuid::createUuid(); QString strId = id.toString(); qDebug() << strId; //输出结果:"{b5eddbaf-984f-418e-88eb-cf0b8ff3e775}" strId.remove("{").remove("}").remove("-"); // 一般习惯去掉左右花括号和连字符 qDebug() << strId; //输出结果:"b5eddbaf984f418e88ebcf0b8ff3e775"
转自:https://blog.csdn.net/u014746838/article/details/78442680
长风破浪会有时,直挂云帆济沧海!
可通过下方链接找到博主
https://www.cnblogs.com/judes/p/10875138.html