April 2018
Beginner
714 pages
18h 21m
English
If you want to use a proxy, you first have to set up QNetworkProxy. You can define the type of proxy with setType(). As arguments, you will most likely want to pass QNetworkProxy::Socks5Proxy or QNetworkProxy::HttpProxy. Then, set up the hostname with setHostName(), the username with setUserName(), and the password with setPassword(). The last two properties are, of course, only needed if the proxy requires authentication. Once the proxy is set up, you can set it to the access manager via QNetworkAccessManager::setProxy(). Now, all new requests will use this proxy.
Read now
Unlock full access