Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.network.kernel.qnetworkproxy.cpp

//! [0]
        QNetworkProxy proxy;
        proxy.setType(QNetworkProxy::Socks5Proxy);
        proxy.setHostName("proxy.example.com");
        proxy.setPort(1080);
        proxy.setUser("username");
        proxy.setPassword("password");
        QNetworkProxy::setApplicationProxy(proxy);
//! [0]


//! [1]
        serverSocket->setProxy(QNetworkProxy::NoProxy);
//! [1]



Generated by  Doxygen 1.6.0   Back to index