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?

Matt

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 <[EMAIL PROTECTED]>
Sony Pictures Imageworks
Software Engineer
Phone: (310) 840 9072
Cell: (703) 624 0221
_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to