<div dir="ltr"><div><div><div><div>starting by saying that I never experienced problems with Openlayers plugin behind proxy, anyway I resolved all my proxy issues (user, passwords, subnet exclusions ...) using Qgis own network manager instead of creating a new one so you can try to remove the lines from 48 to 51 of openlayers_layer.py file and replace the row 52:<br><span style="font-family:monospace,monospace">self.setNetworkAccessManager(self.__manager)</span><br></div>with the following:<br><span style="font-family:monospace,monospace">self.setNetworkAccessManager(QgsNetworkAccessManager.instance())</span><br></div>I just try and it goes but I don't know if it resolvs your issue.<br><br></div>Regards<br></div>Enrico Ferreguti<br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-01 12:32 GMT+02:00 Marica Landini <span dir="ltr"><<a href="mailto:bulma@ferrara.linux.it" target="_blank">bulma@ferrara.linux.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Sorry,<br>I have this problem with 2.8 and 2.10.1 QGIS version (64bit)<br>I have not tried other versions<br></div><div>and I use Win7.<br></div><div><br></div><span style="line-height:16px">I really appreciate any help you can provide.<span class="HOEnZb"><font color="#888888"><br></font></span></span></div><span class="HOEnZb"><font color="#888888"><span style="line-height:16px">Marica<br></span><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 1, 2015 at 12:24 PM, Marica Landini <span dir="ltr"><<a href="mailto:bulma@ferrara.linux.it" target="_blank">bulma@ferrara.linux.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br>I need to use OpenlayersPlugin QGIS behind proxy network.<br>But I need to use defaultproxy settings configuration.<br><br>QGIS works fine with this defaultproxy settings<br>(also connection to wms/etc...<br>reading plugin list and download it).<br><br>But (with the defaultproxy settings) I can not work with OpenlayersPlugin QGIS<br>that return:<br>TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2<br><br>I can instead use this plugin with http proxy and setting manually the configuration (Settings->Options->Network)<br><br>I have tryed to modify OpenlayersPlugin tool_network.py<br>commenting setHostName/setPort/setUser/setPassword<br>and using<br>QNetworkProxy.setApplicationProxy(QNetworkProxy(QNetworkProxy.DefaultProxy))<br>obvious I do not get TypeError, <br>but the plugin not work properly (e.g. I do not get OSM layer).<br><br></div>How can I resolve this problem?<br><div>There is another plugin that works with default (machine) proxy settings?<br>(apologies for my english)...<br><br>Cheers,<br>Marica<span><font color="#888888"><br><br><div><div><div><div><div><div>-- <br><div>Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg<br>Preferisco formati liberi.<br>Please try to avoid to send me .doc, .xls, .ppt, .dwg files.<br>I prefer free formats.<br><a href="http://it.wikipedia.org/wiki/Formato_aperto" target="_blank">http://it.wikipedia.org/wiki/Formato_aperto</a><br><a href="http://en.wikipedia.org/wiki/Open_format" target="_blank">http://en.wikipedia.org/wiki/Open_format</a><br><br>Marica Landini</div>
</div></div></div></div></div></div></font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div>Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg<br>Preferisco formati liberi.<br>Please try to avoid to send me .doc, .xls, .ppt, .dwg files.<br>I prefer free formats.<br><a href="http://it.wikipedia.org/wiki/Formato_aperto" target="_blank">http://it.wikipedia.org/wiki/Formato_aperto</a><br><a href="http://en.wikipedia.org/wiki/Open_format" target="_blank">http://en.wikipedia.org/wiki/Open_format</a><br><br>Marica Landini</div>
</div>
</div></div><br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>