Hello,

I am using QTreeWidget in my application. I need to perform some operation on selecting a particular item of the tree. There are three columns. By default when I click on any of the column of the QTreeWidgetItem, the entire item gets selected. What I want is when I click on the second column of the item, the code related to the second column should be executed, but the item should not get selected/highlighted.

The problem is the code is in the itemClicked slot. I want to interrupt the slot execution. I tried putting return statement, which still selected the item. Is there any option to stop selecting the Item, after executing my code? Something like vetoing the event as explained here?

Thanks in advance