<p dir="ltr">It would be more helpful if you point to the code here. I had a problem with QThread (was initially inheriting QThread) but managed to fix the problem by creating workers and move the worker object to thread. This is a good article about multithreading in qgis<a href="https://snorfalorpagus.net/blog/2013/12/07/multithreading-in-qgis-python-plugins/"> https://snorfalorpagus.net/blog/2013/12/07/multithreading-in-qgis-python-plugins/</a></p>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 5, 2016 23:01, "Sergio Vignali" <<a href="mailto:vignalisergio30@gmail.com" target="_blank">vignalisergio30@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear all,<br><br>I wrote a python script that aims to execute neighbourhood statistics in raster layer. My script uses QThread to update a QList and a QProgressBar and everithing works fine if I run the script from PyCharm, the progressbar and the list are updated. The problem appears when I move my script in a Qgis plugin, the UI appears correctly but clicking OK the software crashes...<br>I am using qgis 2.14 in a linux machine, do you have any advice?<br><br>All the best<br><br></div><br clear="all"><div><div><div><div><br>-- <br><div><div dir="ltr">Sergio Vignali<div><br></div></div></div>
</div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div></div>