I try to remove an item in a QTreeWidget. How can I remove it ? I just want to remove it, not to delete it and I don't find any method.
Asked
Active
Viewed 216 times
0
-
Do you mean to hide an item? – sorush-r Aug 21 '13 at 06:45
-
1what about takeTopLevelItem() API, to remove only ? – Ashif Aug 21 '13 at 06:50
-
Thanks, it's exactly the method I was searching – federem Aug 21 '13 at 06:57
3 Answers
0
if have the item QTreeWidgetItem
call setHidden(bool)
you can get the titem by calling topLevelItem(int index)
from the tree widget

WoJo
- 360
- 2
- 10