I have the following code that I am trying to extract system proxy settings:
QList<QNetworkProxy> listOfProxies = QNetworkProxyFactory::systemProxyForQuery(); foreach ( QNetworkProxy loopItem, listOfProxies ) { qDebug() << "proxyUsed:" << loopItem.hostName(); }
I get only one item back and with an empty host name. Any ideas what I am missing?
source share