#include <QCoreApplication> #include <QUuid> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QUuid id = QUuid::createUuid(); QString strId = id.toString(); qDebug()<< strId; return a.exec(); }
#include <QCoreApplication> #include <QUuid> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QUuid id = QUuid::createUuid(); QString strId = id.toString(); qDebug()<< strId; return a.exec(); }
转载于:https://www.cnblogs.com/amwuau/p/9239483.html