maybe this will help you. In .NET ther is control property called EditMode, and when you put it on EditOnEnter your problem is solved. EditTriggers should be simmilar..
editTriggers : EditTriggers
This property holds which actions will initiate item editing.
This property is a selection of flags defined by EditTrigger, combined using the OR operator. The view will only initiate the editing of an item if the action performed is set in this property.
Access functions:
EditTriggers editTriggers () const
void setEditTriggers ( EditTriggers triggers )
enum QAbstractItemView::EditTrigger
flags QAbstractItemView::EditTriggers
This enum describes actions which will initiate item editing.
QAbstractItemView:: NoEditTriggers, 0, No editing possible.
QAbstractItemView:: CurrentChanged, 1, Editing start whenever current item changes.
QAbstractItemView:: DoubleClicked, 2, Editing starts when an item is double clicked.
QAbstractItemView:: SelectedClicked, 4, Editing starts when clicking on an already selected item.
QAbstractItemView:: EditKeyPressed, 8, Editing starts when the platform edit key has been pressed over an item.
QAbstractItemView:: AnyKeyPressed, 16, Editing starts when any key is pressed over an item.
QAbstractItemView:: AllEditTriggers, 31, Editing starts for all above actions.
Bookmarks