Now I am using QTableView and QStandardItemModel.
In QTableView, if you double-click a cell, that cell will go into edit mode and you can edit its contents.
Now I have a problem, I want to call the element editing mode by code (by command), what should I do? I cannot find a suitable function or slot in QTableView or QStandardItemModel. Do I need to emit any signal to go into edit mode?
And what signal should I catch if I want to know when the editing is finished (the user presses "Enter" or press other elements to exit the editing mode)
thanks for the help
Claire huang
source share