#include "QtNetwork/QNetworkInterface"
#include <QDebug>
QString getMacAddress()
{
QString text;
foreach(QNetworkInterface interface, QNetworkInterface::allInterfaces())
{
text += "Interface:"+interface.hardwareAddress()+"\n";
}
return text;
}
int main(int argc, char *argv[])
{
qDebug() << getMacAddress();
exit(1);
}