<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] Can we set specific Network proxy for QWebView]]></title><description><![CDATA[<p dir="auto">I am having one application where I am creating multiple QWebView objects.<br />
Since each QWebView object is loading different URL , and my network admin wanted to route the specific url through some proxy.<br />
I have one function QNetworkProxy::setApplicationProxy(), which will set the proxy for the entire app, i.e. all QWebView will use that proxy , but I wanted to use different proxy for different QWebView.</p>
<p dir="auto">Please advice how can we achieve this.<br />
Please help it is very urgent!!!!!</p>
]]></description><link>https://forum.qt.io/topic/15382/solved-can-we-set-specific-network-proxy-for-qwebview</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 17:22:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15382.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Mar 2012 12:26:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Can we set specific Network proxy for QWebView on Wed, 28 Mar 2012 06:36:34 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Ashish Mittal" date="1332916135"]<em>Thanks a lot leon!!!!!!!!!!!!</em></p>
<p dir="auto">You made my life really cool.<br />
I am being able to set the different proxy for different Qwebview inside a single application.<br />
your solution simply rockzz!!!!!!!!<br />
[/quote]</p>
<p dir="auto">You are welcome :) I am glad that the issue was solved but please note that I got the idea from a thread at "<a href="http://stackoverflow.com" target="_blank" rel="noopener noreferrer nofollow ugc">stackoverflow.com</a>":<a href="http://stackoverflow.com/questions/6072574/how-do-i-manage-proxies-with-qt-qwebview" target="_blank" rel="noopener noreferrer nofollow ugc">http://stackoverflow.com/questions/6072574/how-do-i-manage-proxies-with-qt-qwebview</a>.</p>
]]></description><link>https://forum.qt.io/post/133863</link><guid isPermaLink="true">https://forum.qt.io/post/133863</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Wed, 28 Mar 2012 06:36:34 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Can we set specific Network proxy for QWebView on Wed, 28 Mar 2012 06:28:55 GMT]]></title><description><![CDATA[<p dir="auto"><em>Thanks a lot leon!!!!!!!!!!!!</em></p>
<p dir="auto">You made my life really cool.<br />
I am being able to set the different proxy for different Qwebview inside a single application.<br />
your solution simply rockzz!!!!!!!!</p>
]]></description><link>https://forum.qt.io/post/133860</link><guid isPermaLink="true">https://forum.qt.io/post/133860</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 28 Mar 2012 06:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Can we set specific Network proxy for QWebView on Tue, 27 Mar 2012 17:33:46 GMT]]></title><description><![CDATA[<p dir="auto">Have you seen "this thread at stackoverflow":<a href="http://stackoverflow.com/questions/6072574/how-do-i-manage-proxies-with-qt-qwebview" target="_blank" rel="noopener noreferrer nofollow ugc">http://stackoverflow.com/questions/6072574/how-do-i-manage-proxies-with-qt-qwebview</a>?</p>
<p dir="auto">It highlights the documentation about "QWebPage":<a href="https://qt-project.org/doc/qt-4.8/qwebpage.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.org/doc/qt-4.8/qwebpage.html</a> and method "setNetworkAccessManager":<a href="https://qt-project.org/doc/qt-4.8/qwebpage.html#setNetworkAccessManager:" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.org/doc/qt-4.8/qwebpage.html#setNetworkAccessManager:</a></p>
<p dir="auto">bq. Note: It is currently not supported to change the network access manager after the QWebPage has used it. The results of doing this are undefined.</p>
<p dir="auto">The recommended solution at "<a href="http://stackoverflow.com" target="_blank" rel="noopener noreferrer nofollow ugc">stackoverflow.com</a>":<a href="http://stackoverflow.com/questions/6072574/how-do-i-manage-proxies-with-qt-qwebview" target="_blank" rel="noopener noreferrer nofollow ugc">http://stackoverflow.com/questions/6072574/how-do-i-manage-proxies-with-qt-qwebview</a> to create QNetworkAccessManager, set up a proxy and then to pass it to the web page seems reasonable.</p>
]]></description><link>https://forum.qt.io/post/133804</link><guid isPermaLink="true">https://forum.qt.io/post/133804</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Tue, 27 Mar 2012 17:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Can we set specific Network proxy for QWebView on Tue, 27 Mar 2012 17:21:07 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your suggestion , but I am not using any QTCPSocket/QAbstractSocket/QTcpServer at all.<br />
I am just using QWebview to load my url. and we can't call this function(setProxy) on QWebView.</p>
<p dir="auto">so probably this is not the way to achieve this.<br />
Please share if you have any other thought</p>
]]></description><link>https://forum.qt.io/post/133799</link><guid isPermaLink="true">https://forum.qt.io/post/133799</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 27 Mar 2012 17:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Can we set specific Network proxy for QWebView on Tue, 27 Mar 2012 13:23:56 GMT]]></title><description><![CDATA[<p dir="auto">I think that the official "Qt documentation offers a solution for your request":<a href="http://qt-project.org/doc/qt-4.8/qnetworkproxy.html#details:" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qnetworkproxy.html#details:</a></p>
<p dir="auto">bq. An alternative to setting an application wide proxy is to specify the proxy for individual sockets using QAbstractSocket::setProxy() and QTcpServer::setProxy(). In this way, it is possible to disable the use of a proxy for specific sockets using the following code:<br />
@ serverSocket-&gt;setProxy(QNetworkProxy::NoProxy);@</p>
]]></description><link>https://forum.qt.io/post/133761</link><guid isPermaLink="true">https://forum.qt.io/post/133761</guid><dc:creator><![CDATA[leon.anavi]]></dc:creator><pubDate>Tue, 27 Mar 2012 13:23:56 GMT</pubDate></item></channel></rss>