ios - How to get the SerialNumber of MAC Laptop in QT -
i developing desktop application osx using qt. how can serial number of osx machine using qt api's.
this solution in qt
qprocess proc; qstringlist args; args << "-c" << "ioreg -rd1 -c ioplatformexpertdevice | awk '/ioplatformserialnumber/ { print $3; }'"; proc.start( "/bin/bash", args ); proc.waitforfinished(); qstring uid = proc.readall(); qdebug()<<uid;
uid serial number
Comments
Post a Comment