[PyQt] QTreeView + sort + delete = crash

Florian Bruhin me at the-compiler.org
Fri May 3 07:35:55 BST 2019


On Thu, May 02, 2019 at 10:25:38PM -0500, John F Sturtz wrote:
> Any help or insight would surely be appreciated.

You might want to try running pytest-qt's item model tester over your model:
https://pytest-qt.readthedocs.io/en/latest/modeltester.html

(I suppose with PyQt > 5.11 you can also use QtTest.QAbstractItemModelTester
outside of pytest, but I never tried)

It catches a lot of little issues with model implementations and (hopefully)
tells you what's wrong.

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: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190503/7ae5c4f1/attachment.sig>


More information about the PyQt mailing list