[QGIS-Developer] connecting to QgsNetworkAccessManagers signals

Nyall Dawson nyall.dawson at gmail.com
Fri Jan 18 13:56:20 PST 2019

On Fri, 18 Jan 2019 at 21:19, Richard Duivenvoorde <rdmailings at duif.net> wrote:
> On 1/18/19 12:13 PM, Alessandro Pasotti wrote:
> > I didn't look at the code but maybe it's because the NAM instance is
> > per-thread and WMS/WFS downloaders run within threads.
> Yeah, that is what I'm afraid of...
> I just do QgsNetworkAccessManager.instance() which get's it from current
> thread.
> And (from what I understand) most providers do not keep an handle to
> some NAM :-(
> There is no way to QgsNetworkAccessManager what instances are running in
> different threads?

It'd need to be a change made in the core code -- the signals from the
background threads would need to be "bubbled up" to the main thread
instance of the manager.


> Richard
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

More information about the QGIS-Developer mailing list