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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -