[PyQt] Re: problem with QAbstractItemModel

Vicent Mas uvemas at gmail.com
Fri Nov 6 09:22:59 GMT 2009


> Hi,
> 
> the attached script implements a minimal tree model featuring rows
>  deletion. It works just fine with (Qt 4.4, PyQt 4.4.4). However, with (Qt
>  4.5.2, PyQt 4.5.4) and (Qt 4.5.2, PyQt 4.6.1) deleting the last row raises
>  the following error:
> 
> vmas at rachael:/tmp$ python tmTester.py &
> [2] 6819
> vmas at rachael:/tmp$ Traceback (most recent call last):
>   File "tmTester.py", line 189, in index
>     return self.createIndex(row, column, branch.childAtRow(row))
>   File "tmTester.py", line 86, in childAtRow
>     return self.children[row]
> IndexError: list index out of range
> 
> Is it a bug in the recent versions of PyQt? Or should I fix some problem in
>  the script?
> 
> I would really appreciate your help.
> 

Hi,

I'm still struggling with this problem, looking for a solution (or, at least, 
a workaround) with no luck. Could somebody give me a hand please? I really 
need to fix this issue.

TIA

Vicent

PD: I ran the script in a debian box with python 2.5.
::

	Share what you know, learn what you don't

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091106/2d526262/attachment-0001.bin


More information about the PyQt mailing list