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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -