In TreeView
, selecting a row by clicking it.
But I want to focus the row in TreeView
by indicating the row QModelIndex
and roleName
.
I found similar function in ListView
:
positionViewAtIndex(int index, PositionMode mode)
How to do this in TreeView
?