<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks, that works but then then any branches you have open in the tree
view closed. I guess there is no way to maintain<br>
the open/close status of existing branches, and default new ones to
open?<br>
<br>
Matt<br>
<br>
Andreas Pakulat wrote:
<blockquote cite="mid20061006155607.GB24856@morpheus.apaku.dnsalias.org"
type="cite">
<pre wrap="">On 06.10.06 08:30:27, M.Chambers wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap=""><!---->
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
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<div
style="text-decoration: none; font-family: Arial,Tahoma,Verdana; font-size: 12px;"><b>Matt
Chambers <a class="moz-txt-link-rfc2396E" href="mailto:chambers@imageworks.com"><chambers@imageworks.com></a></b><br>
<b><span style="color: rgb(0, 0, 0);">Sony Pictures</span> <span
style="color: rgb(153, 0, 0);">Imageworks</span></b><br>
Software Engineer<br>
Phone: (310) 840 9072<br>
Cell: (703) 624 0221<br>
</div>
</div>
</body>
</html>