MAC ID of PC in Qt
-
Hi and welcome to the forums
Actually there can be more than one mac address. each network interface have one.
For a laptop , there is often both WIFI and ethernet ( cable) so keep this in mind.you can use QNetworkConfiguration
http://doc.qt.io/qt-5/qnetworkconfigurationmanager.htmlsee here for example
https://stackoverflow.com/questions/7609953/obtaining-mac-address-on-windows-in-qtlast example handles the fact, there can be more than one.
In most cases you only want
BearerWLAN and BearerEthernet.