1
2
3
#include <QUuid>
QUuid id = QUuid::createUuid();
QString strId = id.toString();