[PyQt] PyQt5.6 with Python 3.5 Crash
Florian Bruhin
me at the-compiler.org
Fri May 19 11:53:40 BST 2017
Hi,
On Fri, May 19, 2017 at 03:25:21PM +0530, Rathinam Signup wrote:
> I'm using QAbstractItemModel with QTreeView in PyQt5.6-Py3.5. When I call
> model.beginInsertRows(index,i,i) the app crashes. If I try to add children
> under root index it's working fine. But If I try to add rows on any other
> index the app crashes. I'm quite sure that it worked without any issues in
> PyQt4.
>
> Any help would be appreciated. Thanks.
Without seeing any code, we can't really tell you much more than the
segfault already does: Probably there's *something* wrong with your code
;-)
I suggest trying to run the pytest-qt modeltester over your model:
http://pytest-qt.readthedocs.io/en/latest/modeltester.html
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/20170519/d9f57f56/attachment-0001.sig>
More information about the PyQt
mailing list