For a treeView if i use setCurrentIndex() it selects/highlights a particular item based on the index. So is there any way that whenever I am using setCurrentIndex() it should emit a clicked() without creating my own custom class that subclasses QTreeView.