QList<QNetworkInterface> list = QNetworkInterface::allInterfaces();

foreach(QNetworkInterface i, list) {

qDebug() << i;

}

相关文章: