Quote Originally Posted by yogeshm02
Do not just try to use the code given by me. Try to understand what is being done, and then you would have no questions. Refer to qt docs.


I wanted to pack-up in as few lines as possible.
Thank your help !
now I know your code about how to delete a treewidgetitem. but now my question is
how can I get the treewidgetitem which the mouse has clicked?
I just want to realize the follow operation: click a treewidgetitem and then press a delete button to delete the clicked item.