jedendaya
10th March 2016, 08:25
Hi,
Im using Qt 5.5 in Windows, i have a program that shows the ff:
IP ADDRESS - "10.24.119.22"
WIFI CONNECTION - "10.24.200.39"
using this QT codes
QList<QHostAddress> list = QNetworkInterface::allAddresses();
QHostInfo info;
QString qstr = info.localDomainName();
qDebug() << qstr;
for(int nIter=0; nIter<list.count(); nIter++)
{
if(!list[nIter].isLoopback())
if (list[nIter].protocol() == QAbstractSocket::IPv4Protocol )
qDebug() << list[nIter].toString();
}
is there a way that instead of showing the "address" the project will show the "Access Point Name" of the WLAN?
can somebody help me with this.
Thank you
Im using Qt 5.5 in Windows, i have a program that shows the ff:
IP ADDRESS - "10.24.119.22"
WIFI CONNECTION - "10.24.200.39"
using this QT codes
QList<QHostAddress> list = QNetworkInterface::allAddresses();
QHostInfo info;
QString qstr = info.localDomainName();
qDebug() << qstr;
for(int nIter=0; nIter<list.count(); nIter++)
{
if(!list[nIter].isLoopback())
if (list[nIter].protocol() == QAbstractSocket::IPv4Protocol )
qDebug() << list[nIter].toString();
}
is there a way that instead of showing the "address" the project will show the "Access Point Name" of the WLAN?
can somebody help me with this.
Thank you