<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 27 May 2024, 5:54 pm Pedro Camargo via QGIS-Developer, <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt">Hello fellow QGIS'ers.<br><br>I have a (new to me) problem in my hands.<br><br>I am building an interface to run a large transportation simulation model (<a href="https://polaris.taps.anl.gov/polaris-studio/index.html" target="_blank" rel="noreferrer">Polaris</a>) from a QGIS plugin, and I would like to update the interface as the simulation progresses.<br><br>The issue here is that this simulation is done inside a compiled C++ executable from which I cannot emit any QT signals, so I have to do it "manually" by processing the logfile generated by the application.<br><br><div>I currently don't see a way to do this, as the calling the simulation processes captures the GIL and I can't update the interface, but is there another way of doing this?<br></div><div><br></div><div>I am at a bit of a loss, so I appreciate any pointers.<br></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'd suggest following the approach used by the GDAL processing algorithms. See</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/gdal/GdalUtils.py#L146">https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/gdal/GdalUtils.py#L146</a></div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt"><div></div><div><br></div><div>Cheers,<br></div><div>Pedro</div></div><br></div>_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div></div></div>