Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

qt get wireless interface name

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();
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #qt #wireless #interface
ADD COMMENT
Topic
Name
5+7 =