QNetworkInterface interface;
QList<QNetworkInterface> IpList = interface.allInterfaces();
for (int i = 0; i < IpList.size(); i++){
if (IpList.at(i).type() == QNetworkInterface::Wifi){
qDebug() << "Current wireless interface is: " << IpList.at(i).humanReadableName();
}
}