thank yor for your answer but I don't think this is what i'm looking for or maybe i didn't explain well. I want for item to become unselected when i left-click in an empty space in this widget or when i select an item in another widget. Now when i left-click an empty space item is still selected (has focus) and if i select item in another TreeWidget item in previous widget still has focus. This is what i want to solve.