[PyQt] Re: problem with QAbstractItemModel

Vicent Mas uvemas at gmail.com
Fri Nov 6 19:00:20 GMT 2009


> Hi,
> 	i can reproduce the problem here with (Qt 4.5.2, PyQt 4.6.1), i had the
>  same problem in one model tree i have in my code but i simply returns the
>  children only if exists in the list:
> 
> if row < len(self.children):
> 	return self.children[row]
> 
> I suppose it is not the best way to do it but i have not had problems with
>  this model anyway.
> 

Hi,

so it seems it is a bug. I'll test your workaround. I discarded similar things 
in the past because I'm not sure that the code is *completely* reliable, but 
I'll try it again. Thanks.

Vicent
::

	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/c209706b/attachment.bin


More information about the PyQt mailing list