[Qt-interest] releasing an item from treeWidget not possible?
J-P Nurmi
jpnurmi at gmail.com
Mon Feb 8 15:37:27 CET 2010
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
More information about the Qt-interest-old
mailing list