Re: QTreeView + sort + delete = crash

Florian Bruhin <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
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 | [email protected] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE4E5WAAJAG47w528KkW6wyP1VoHIFAlzL4UsACgkQkW6wyP1V
oHLq/Q/+PbeHmUP9jqKdFgRUcfLi1BKq+9XF/yDo/isW36YGkPDioIYXXOPTRM4m
Spma6HlLS0MTxuE3EzEtbzaFSsBbLdY+KUQ/geD4eA7mwdSQtdofA8gZDQQ43dS9
KZeP/LvdcPva3FG9crxi+pWdqPLYl4JCkY/bxytvXoVpZMRW3xhnldgPQbOeRCuK
bERSv5fg5w7ajLNHP5UbdD8v/QQppffRhLjPaa2bzk9DjTX284heXe24tDlSuKS9
KJQiNFi6XTrrLXYAH/iX/7jqU8Nz16KNY9yICin5KfpFdJeea8ODF3Vi458uLgcF
CPQqJpuIo6O9qr0P73znczGRff1xW6Q5B0DGIfz3vjiqWImzHkHeJEkPQgIdl5fR
/2ReSnf/+1VPlSYbhMD4m4CH1nJKYwPMRuyCG3PpFVScG6o4PJvd00F0pMv2FdQW
niGSrUpfXPjYFjbmzMzyVHF5Gb7xxee0Yk1U7v1ZytZOhUg5lOtyMRrnURZaE48G
6vsPMcnr1CheyRxgarnYOwT5vSsBL69T4D1EVVhZXnHa/BRir5iB2o7PGXrEov1J
TSZjHfN2q9ooKhjq47eyx65wolfdew0wvXHlZhcv+4gLDMsF/N+RY0NZMOcU707s
iU5YfeBwRCA2vv474fkMJMFxtNVu0dfbFsm9gw6aG6XM5NEkwYI=
=wxTu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.