I wanted to connect to a server in a network with a proxy. The server is not behind the proxy so I used `QNetworkProxy::setApplicationProxy(QNetworkProxy::NoProxy)` to force not using any proxy. But when I try to connect I get following error:
QAbstractSocket::UnsupportedSocketOperationError "The proxy type is invalid for this operation"
If I call `QAbstractSocket::setProxy(QNetworkProxy::NoProxy)` or `QAbstractSocket::setProxy(QNetworkProxy::applicationProxy)` I can connect and don't get any error. I expected that setting the application wide proxy would cause the `QAbstractSocket` to setted proxy (in my case no proxy).
PS: I am using an extern component so I cannot call `QAbstractSocket::setProxy`. For testing I used a QTcpSocket to get the full error message.