I have QTreeWidget
containing 5 columns. I want to remove column from the tree when user uses remove column menu. How can I remove column from the tree?
If it's purely for UI purposes you can hide the corresponding section in the QHeaderView
used by your tree view:
treeview->header()->hideSection(4)