[Qtscript-bindings] QTreeWidget, deleting/removing an item

Jostein Topland josteint at sim.no
Fri Sep 19 16:04:31 CEST 2008


The problem is when I get item from treeWidget.selectedItems()[0]. When 
I change that it does not affect the tree widgets items. 
QTreeWidget::takeTopLevelItem(int index) is the closest one till now, 
but it only removes from the root.

Ian Monroe wrote:
> On Fri, Sep 19, 2008 at 8:34 AM, Jostein Topland <josteint at sim.no> wrote:
>   
>> Brilliant! This works, but does not only remove elements on top level /
>> root? There are leaves not at top level which I would also like to remove.
>>     
>
> QTreeWidgetItem.removeChild, takeChild
>   



More information about the Qtscript-bindings mailing list