[PySide] filling model via QRunnable creates extra rows

Frank Rueter | OHUfx frank at ohufx.com
Tue May 2 10:29:55 CEST 2017


Oh, damn.
How do I show progress bars and counters etc. while scanning the file 
tree then?
I will read your link properly in the morning, it's late over here.

frank

On 2/05/17 8:25 PM, Florian Bruhin wrote:
> On Tue, May 02, 2017 at 08:21:41PM +1200, Frank Rueter | OHUfx wrote:
>> Hi all,
>>
>> I just ran int this issue where I'm trying to fill a model via QRunnable,
>> but when I do so, it seems to add extra rows for some mysterious reasons.
>> If I run the respective process in in the main thread I get the expected
>> results.
>> Can somebody please help?
>> Test code attached.
> Your model needs to be modified from the main thread:
> http://blog.hostilefork.com/qt-model-view-different-threads/
>
> Florian
>




More information about the PySide mailing list