<html>
<head>
</head>
<body>
Ok, but you tried with toplevel item or children item? I mean if you remove
an item which has a ListViewItem<br>
parent, the whole familly is removed.<br>
<br>
Jonathan Gardner wrote:<br>
<blockquote type="cite" cite="mid:20020306101703.A1036@linux.hananet.net">
<pre wrap="">On Tue, Mar 05, 2002 at 09:20:21AM +0100, Laurent Claustre wrote:<br></pre>
<blockquote type="cite">
<pre wrap="">I'v got no help from my last e-mail about that, I know it can best<br>concerne a Qt mailing-list, but maybe someone from you has find a<br>solution. I don't know how to remove properly an item from Its<br>ListView or ListViewItem parent. It seems for the moment the only way<br>is to clear the entire ListView and refill it afterward. The ListView<br>I manage can display a huge tree structure and removing/refilling the<br>entire tree waste lot of cpu time. Has anybody idea ? Cheers.<br></pre>
</blockquote>
<pre wrap=""><!----><br>I'll take a stab at this. I have a widget that uses QListView and<br>QListViewItem. I just use the takeItem() function and let the variable<br>pass out of scope. I don't know if that is correct, but it seems to<br>work.<br><br>Jonathan<br><br>_______________________________________________<br>PyKDE mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyKDE@mats.gmd.de">PyKDE@mats.gmd.de</a><br><a class="moz-txt-link-freetext" href="http://mats.gmd.de/mailman/listinfo/pykde">http://mats.gmd.de/mailman/listinfo/pykde</a><br></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
        /===============================================================\
        | Laurent Claustre | eMail: <a class="moz-txt-link-abbreviated" href="mailto:claustre@esrf.fr">claustre@esrf.fr</a> |
        | BeamLine Instrument Software | Phone: +33 (0)476 88 29 12 |
        | Support Group (BLISS) | Fax : +33 (0)476 88 25 42 |
        | Experiments Division | Central Building Room 150 |
        | ------------------------------------------------------------- |
        | European Synchrotron Radiation Facility |
        | 6 rue Jules Horowitz BP220 38042 Grenoble Cedex - France |
        \===============================================================/
</pre>
<br>
</body>
</html>