[Qgis-developer] Use of PyQt QThread in QGIS Plugin

Horst Düster horst.duester at kappasys.ch
Sat Aug 13 07:32:54 EDT 2011


Hi

I'm playing with use of PyQt QThreads in a plugin. But I'm not 
successful. I created a very simple plugin with the aim to understand 
the threading mechanisms of PyQt. The GUI collects number of iterations 
and the thread does nothing else than to iterate over this number. When 
I start the iteration process sometimes it works, but very slow. 
Sometimes the result will appear after closing and reopening the GUI. 
I'm a little bit confused about these results. I appended the plugin. 
Maybe someone outside is able to help. I would appreciate an hint or help.

Regards
Horst
-- 

Dr. Horst Düster
Kappasys
Burchacker 6
CH-4556 Aeschi

Tel.: +41(0)62 961 03 74
Mobil: +41(0)76 408 51 06
E-Mail: horst.duester at kappasys.ch
Skype: horstduester
Web: http://www.kappasys.ch


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Threads.zip
Type: application/zip
Size: 7041 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110813/79700808/Threads.zip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: horst_duester.vcf
Type: text/x-vcard
Size: 260 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110813/79700808/horst_duester.vcf


More information about the Qgis-developer mailing list