kerim
13th April 2011, 14:01
hi,
hope u can help:
i have QTableView *tableview and i insert a row to it by
tableview->model()->insertRow(0);
Whereby the model is a custom model subclassed from QAbstractTableModel.
Insertion works fine and one can edit the row-content by double-clicking on the freshly created row.
Now, i want the inserted row (this is editable) to get the edit-focus immediately without having to double-click on it to edit it).
how do i do that?
thnx.
hope u can help:
i have QTableView *tableview and i insert a row to it by
tableview->model()->insertRow(0);
Whereby the model is a custom model subclassed from QAbstractTableModel.
Insertion works fine and one can edit the row-content by double-clicking on the freshly created row.
Now, i want the inserted row (this is editable) to get the edit-focus immediately without having to double-click on it to edit it).
how do i do that?
thnx.