chatgpt结果
#include <QUuid>
#include <QDebug>
int main()
{
// 生成一个新的 UUID
QUuid uuid = QUuid::createUuid();
// 将 UUID 转换为字符串,并打印输出
QString uuidString = uuid.toString(QUuid::WithoutBraces);//生成不带花括号的uuid字符串
qDebug() << "Generated UUID:" << uuidString;
return 0;
}
标签:UUID,生成,QUuid,Qt,include,uuid
From: https://www.cnblogs.com/simp/p/17235360.html