title: How to set a proxy on a QNetworkAccessManager?
body: <p>I want to get the webpage source code of <a href="http://www.youtube.com/" rel="nofollow">http://www.youtube.com/</a>  ,but youtube is blocked in my country ,so I decided to access it by a proxy server – hostname : 127.0.0.1  port :8087</p>
  
  <p>according to the documentation I think use </p>
  
  <pre><code>void QNetworkAccessManager::setProxyFactory ( QNetworkProxyFactory * factory )
  </code></pre>
  
  <p>is a good choice for me ,but I don’t know how to associate this function with my proxy server at all ,I googled a lot ,but found it very hard to find an example on how to using this function ,anyone can show me how to use it on my needs here ?</p>
  
  <p>only showing me how to use this function is enough ,I know how to get the webpage source code</p>