[PyKDE] MVC Question

Matt Chambers chambers at imageworks.com
Fri Oct 6 18:14:17 BST 2006

Thanks, that works but then then any branches you have open in the tree 
view closed.   I guess there is no way to maintain
the open/close status of existing branches, and default new ones to open?


Andreas Pakulat wrote:
> On 06.10.06 08:30:27, M.Chambers wrote:
>> Hi everyone, thanks for your past advice.  I have a abstract model and a
>> qtreeview setup to use an cElementTree object as the underlying data
>> source.  Works awesome, and its very fast.  What happens when I want to
>> replace the elelentreee object with a newer one which may or may not
>> contain new data?  For a split second I would be ripping the data out
>> from under the model.  Is there any methods I have to call to prepare it
>> for this?
> Put a method into your model class that takes the new tree assigns it to
> it's member variable and then emit the modelReset signal from that
> function. This will signal the tree view that the model has totally
> changed.
> Andreas

*Matt Chambers <chambers at imageworks.com>*
*Sony Pictures Imageworks*
Software Engineer
Phone: (310) 840 9072
Cell: (703) 624 0221
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20061006/86493874/attachment.html

More information about the PyQt mailing list