[Qtscript-bindings] QTreeWidget, deleting/removing an item
Jostein Topland
josteint at sim.no
Fri Sep 19 15:34:34 CEST 2008
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.
Ian Monroe wrote:
> On Fri, Sep 19, 2008 at 8:24 AM, Jostein Topland <josteint at sim.no> wrote:
>
>> Ian Monroe wrote:
>>
>>> On Fri, Sep 19, 2008 at 7:53 AM, Jostein Topland <josteint at sim.no> wrote:
>>>
>>>
>>>> How is deleting items in a QTreeWidget done in QtScript?
>>>>
>>>>
>>> Did you tree treeWidget.removeItemWidget ?
>>>
>>> Ian
>>>
>>>
>> I also tried that, but that even does not work for c++ or qtscript.
>> removeItemWidget refers to an item widget laid on top of an item. widget
>> items are something else than items.
>>
>>
>
> Yep your right.
>
> Just tested it out, takeTopLevelItem works though.
>
More information about the Qtscript-bindings
mailing list