获取本地电脑的uuid
QString cmdstr = "wmic csproduct get uuid";
QProcess myp;
myp.start(cmdstr);
myp.waitForFinished();
QString uuidInfo = myp.readAllStandardOutput();
myp.kill();
myp.close();
QStringList ulist = uuidInfo.split(" ");
uuidInfo.remove(ulist.first(),Qt::CaseInsensitive);
uuidInfo.remove(ulist.last());
qDebug() << "----uuid 1" << uuidInfo;
uuidInfo.replace("\r", "");
qDebug() << "----uuid 2" << uuidInfo;
uuidInfo.replace("\n", "");
qDebug() << "----uuid 3" << uuidInfo;
uuidInfo.remove(" ");
qDebug() << "----uuid 4" << uuidInfo;
ui.edtUUID->setText(uuidInfo);