How to focus the selected index in the tree view
Solved
General and Desktop
-
i can QTreeView i can use the following command to highlight the elected index.
m_view->setCurrentIndex(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()