[QGIS-Developer] connecting to QgsNetworkAccessManagers signals

Richard Duivenvoorde rdmailings at duif.net
Fri Jan 18 03:19:22 PST 2019


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?

Richard


More information about the QGIS-Developer mailing list