Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to focus the selected index in the tree view
summit last edited by summit
i can QTreeView i can use the following command to highlight the elected index.
But if the selected tree item is somewhere deep below the hierarchy i have to manually scroll down to the item.
How can i automatically scroll to the tree item ?
Also i want to set the selected color of the to red ?
Take a look at QAbstractItemView::scrolTo()