How do I enable the user moving between the columns in a QTreeView? I'm using a QStandardItemModel with 2 columns, and each item is a QStandardItem. If I do a

setSelectionBehavior( QAbstractItemView::SelectItems )

the right arrow key does an expand-tree and the tab key (which is enabled) moves to the next row.

I want the user to enter some data in the first column and then be moved (or be able to move) to the second. How do I do this?