How can I retrieve hardware information ?

  • How can I retrieve serial number of hardware like motherboard, processor, RAM, HDD and LAN card MAC address using Qt for Windows, Linux, Mac and Android ?

  • Qt does not provide host platform related information, so it will be able to cross-platform :)

    Host OS(platform) info has be provided by yourself for each platform specific implementation. For example, you could use Glib APIs for linux.

  • Moderators

    the only Qt way i can think of is using "QtSystems Addon Module": and its QDeviceInfo class. You need to check it our from git and compile it yourself. And i don't know how accurate it is for desktop platforms though, but definitly worth a shot.

  • Thank you all for giving valuable information.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.