[PySide] filling model via QRunnable creates extra rows

Florian Bruhin me at the-compiler.org
Tue May 2 10:25:25 CEST 2017


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

-- 
https://www.qutebrowser.org  | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170502/fb8ec49c/attachment.sig>


More information about the PySide mailing list