[Qgis-developer] [Qgis-user] accessing a web page from within a plug-in

Rémi Cura remi.cura at gmail.com
Fri Mar 6 04:24:51 PST 2015


It turns out you were completely right.
Your answer definitively gives a way to use the proxy setted in QGIS.
Thanks again,
Rémi-C

2015-03-03 15:38 GMT+01:00 Rémi Cura <remi.cura at gmail.com>:

> Thank you very much.
> It seems that strangely enough,
> using  `QWebView` automatically takes into account the qgis proxy settings.
>
> For the check of connection, it was actually a lot more complicated that
> we thought.
> The complexity comes from the fact that all QT web querry are asynchronous.
>
> We put a state machine to switch between local and online version when
> there is/there is no connexion.
>
> Many thanks for your help.
>
> Cheers,
> Rémi-C
>
> 2015-03-02 18:46 GMT+01:00 Enrico Ferreguti <enricofer at gmail.com>:
>
>>
>> http://stackoverflow.com/questions/23041066/setting-proxy-parameter-in-qgis-plugins-how-to
>>
>> The only problem is the url exclusions is not implemented in qt class.
>> Regards
>>
>> Enrico ferreguti
>> ------------------------------
>> Da: Rémi Cura <remi.cura at gmail.com>
>> Inviato: ‎02/‎03/‎2015 18:20
>> A: qgis-developer <qgis-developer at lists.osgeo.org>;
>> qgis-user at lists.osgeo.org
>> Oggetto: [Qgis-user] accessing a web page from within a plug-in
>>
>> Hey dear Qgis list,
>>
>> my question is related to network and plugin.
>>
>> From within our plugin
>> <http://remi-c.github.io/interactive_map_tracking/> we would like to
>> display a User Guide
>> <https://github.com/Remi-C/interactive_map_tracking/wiki/%5BUser%5D-User-Guide-%28simplified%29>
>> .
>> This guide already exists on GitHub, and it would be good to directly
>> display the html fo the github page in the plugin.
>>
>>
>> Of course internet is not always accessible, so we have a local version
>> of html pages in the plugin directory.
>>
>> SO there is 2 questions :
>> - Are we sure that using the `QWebView` to connect to internet will
>> include the QGIS proxy settings? (what is the best practice here?)
>> - How to check if it is possible to access an internet page, so that if
>> it is not possible to get the online version, we could fall back on the
>> local version?
>>
>> Thanks for your time ,
>> Cheers,
>> Rémi-C
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150306/5e4677b5/attachment.html>


More information about the Qgis-developer mailing list