PDA

View Full Version : QtSocks5 setting not working



psridharan
17th December 2012, 21:24
Hi i have a Qt binary pointing to my Own url, which loads facebook from the backend.
I wanted to make a Qt to have socks5 setting, so i added the below code,
QNetworkProxy proxy(QNetworkProxy(QNetworkProxy::Socks5Proxy, "127.0.0.1", 1080));
QNetworkProxy::setApplicationProxy(proxy);


But the request is not sent out from the Qt Browser.
Please help me to figure out what is the setting for the Sock5Proxy to work.
Also,
Turning this on and off is not helpful,
//proxy.setCapabilities(QNetworkProxy::HostNameLooku pCapability);
//proxy.setCapabilities(QNetworkProxy::TunnelingCapa bility)


PAvi