문제

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.

도움이 되었습니까?

해결책

You can try with takeTopLevelItem() API, It only removes the item.

다른 팁

You can use QTreeWidgetItem::setHidden on the item you want to hide.

if have the item QTreeWidgetItem call setHidden(bool) you can get the titem by calling topLevelItem(int index) from the tree widget

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top