An open API service indexing awesome lists of open source software.

https://github.com/jaytwolab/getmacaddress-qt

Get Mac Address in Qt
https://github.com/jaytwolab/getmacaddress-qt

Last synced: 2 months ago
JSON representation

Get Mac Address in Qt

Awesome Lists containing this project

README

        

# GetMacAddress-Qt

- Get Mac Address in Qt

```cpp
#include "MacAddress.h"

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);

{
qDebug() << "=== Not use loopback ===";
bool useLoopback = false;
QStringList addrList = j2::getMacAddressList(useLoopback);
foreach(QString strAddr, addrList)
{
qDebug() << strAddr;
}
}

{
qDebug() << "=== Use loopback ===";
bool useLoopback = true;
QStringList addrList = j2::getMacAddressList(useLoopback);
foreach(QString strAddr, addrList)
{
qDebug() << strAddr;
}
}

return 0;
}
```

- main code from https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=browniz1004&logNo=221643677637

- Some code is fixed by j2doll.

- It is a part of j2(jay two) library.

## License
- MIT License