Re: hidden a QTreeWidgetItem
Append first, hide later.
Re: hidden a QTreeWidgetItem
thanks, but its always the same, i tried to disable the item with
setDisabled(true)
and its works, but i can't hide the item...it sounds quite strange...
Re: hidden a QTreeWidgetItem
Ok, but what is "itemList"? It's not a QTreeWidget, is it? You are adding the item to the tree elsewhere.
Re: hidden a QTreeWidgetItem
itemList is a QList<QTreeWidgetItem*>
and then i add al the list in QTreeWidget
Code:
treeWidget->insertTopLevelItems ( 0 , itemList );
Re: hidden a QTreeWidgetItem
So as I already said add those items to the tree before you hide them.
Re: hidden a QTreeWidgetItem
Hi! wysota is right! Setting the hidden parameter of the QTreeWidgetItem is only works if it has a parent or container (QTreeWidget) or something like that.