<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div><div style="font-family :  Verdana,  Arial,  Helvetica,  sans-serif; font-size :  10pt;"><div>Thanks a lot for this, Nyall. It works a treat!<br></div><div><br></div><div>I did notice a curious behavior, though.  The stdout callback seems to only be called every so often, and there doesn't seem to be a control for that in the documentation for the relevant objects. Did I miss anything?<br></div><div><br></div><div>Cheers,<br></div><div>Pedro</div><div><br></div><div><br></div><div><br></div><div class="x_1212479594zmail_extra_hr" style="border-top :  1px solid rgb(204, 204, 204); min-height:  0px; margin-top :  10px; margin-bottom :  10px; line-height :  0px;"><br></div><div class="x_1212479594zmail_extra"><div><br></div><div id="x_12124795941">---- On Mon, 27 May 2024 18:12:33 +1000 <b>Nyall Dawson <nyall.dawson@gmail.com></b> wrote ---<br></div><div><br></div><blockquote id="x_1212479594blockquote_zmail" style="margin :  0px;"><div><div dir="auto"><div><br><br><div class="x_395239113gmail_quote"><div dir="ltr" class="x_395239113gmail_attr">On Mon, 27 May 2024, 5:54 pm Pedro Camargo via QGIS-Developer, <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="x_395239113gmail_quote" style="margin  :  0 0 0; 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">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<br></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" target="_blank">https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/gdal/GdalUtils.py#L146</a><br></div><div dir="auto"><br></div><div dir="auto">Nyall<br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="x_395239113gmail_quote"><blockquote class="x_395239113gmail_quote" style="margin  :  0 0 0; border-left  :  1px #ccc solid; padding-left  :  1ex;"><div><div style="font-family  :  Verdana,  Arial,  Helvetica,  sans-serif; font-size  :  10pt;"><div><br></div><div><br></div><div>Cheers,<br></div><div>Pedro<br></div></div><br></div>_______________________________________________<br> QGIS-Developer mailing list<br> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div></div></div></div></blockquote></div></div></div><div><br></div></div><br></body></html>