So why didn't you ask, "Why isn't QTreeView::scrollTo() scrolling to display the specified index when use like this? <insert your code>"?
Two obvious options:
- It is making sure the specified index is visible but you are expecting something else like automagically keeping the current index in view.
- The index you have given it is not valid.
Bookmarks