[Qt-interest] releasing an item from treeWidget not possible?
Roland Tollenaar
rwatollenaar at gmail.com
Mon Feb 8 16:50:15 CET 2010
Hi,
excellent thanks. This sorted out my problem.
Roland
J-P Nurmi wrote:
> On Mon, Feb 8, 2010 at 4:21 PM, Roland Tollenaar <rwatollenaar at gmail.com> wrote:
>> Hi,
>>
>> it seems to be impossible to free a QtreeWidgetItem from its parent
>> treeWidget once it has been added.
>>
>>
>> In other words:
>>
>> tw.addTopLevelItem(item)
>>
>> can never be undone without deleting the item?
>>
>> The idea is to add the item as a childof another item sometimes and
>> sometimes have it directly as topLevelItem.
>
> Hi, see
>
> - QTreeWidget::takeTopLevelItem()
> - QTreeWidgetItem::takeChild()
>
> --
> J-P Nurmi
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list