QUuid uuid = QUuid::createUuid();
//toUpper() 将小写字母变为大写
QString strUUId = uuid.toString().remove("{").remove("}").remove("-").toUpper();
qt -- 创建UUID
最新推荐文章于 2023-08-03 09:14:50 发布
QUuid uuid = QUuid::createUuid();
//toUpper() 将小写字母变为大写
QString strUUId = uuid.toString().remove("{").remove("}").remove("-").toUpper();