在Qt中生成UUID(全球唯一码)
2016-06-08 19:05
344 查看
代码如下:
[cpp] view
plain copy
#include <QUuid>
QUuid id = QUuid::createUuid();
QString strId = id.toString();
[cpp] view
plain copy
#include <QUuid>
QUuid id = QUuid::createUuid();
QString strId = id.toString();
相关文章推荐
- vue 多项目 依赖webpack开发共用 配置
- poj1458Common Subsequence--LCS
- LeetCode:N-Queens II
- 有关StringBuilder字符串的一些应用
- Looper、Message、MessageQueue、Handler异步消息处理机制源码分析
- 检测预设资源是否有UIFont为空的编辑器
- Android学习之图解调用invalidate()和requestLayout()的过程
- Parquet 读写
- 栈(stack)和队列(queue)的简单实例
- UIAlertController
- UIView的drawRect调用时机和条件
- 栈和队列的简单实例
- RequireJS入门(一)
- BearSkill之UIView挖空处理
- ios UIView常用动画效果
- 关于easyui 行高禁止自适应
- Android中常用的handler进行UI更新和Thread代码
- .MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1
- while(true)引发的Dubbo应用假死
- iOS巅峰之UILabel上显示不同的字体样式和颜色