QList<QNetworkInterface> list = QNetworkInterface::allInterfaces();
foreach(QNetworkInterface i, list) {
qDebug() << i;
}
QList<QNetworkInterface> list = QNetworkInterface::allInterfaces();
foreach(QNetworkInterface i, list) {
qDebug() << i;
}
转载于:https://www.cnblogs.com/coolbear/p/5157406.html