Unsolved How to get MachineUniqueId() in QT
-
Hi Guys.... im trying to get system information using QSysInfo im getting all the inforamation except machineUniqueId() please help me to solve this......
-
@Bharth
Hi
https://forum.qt.io/topic/91882/qsysinfo-machineuniqueid-empty-on-windowsMight not be supported on the platform you are on.
-
is there any other way to get machineUniqueId()????
-
There WMI(Windows Management Interface) in Windows. I feel this is the only way to machine unique id.
-
Hi
Just as a note:
Win 10 , Qt 5.11.1 visual studio compiler 2017
QByteArray b=QSysInfo::machineUniqueId();
qDebug() << b;
give me
6ed084c0-6519-4b12-ae70-6434ac1263..
so does in fact return something here.So what platform and Qt version are you trying this with?
-
@mrjj said in How to get MachineUniqueId() in QT:
QByteArray b=QSysInfo::machineUniqueId();
qDebug() << b;im getting empty value
QT version 5.11.2
windows 10
visual studio 2012