How to trigger the edit mode of an item in a QTableView?
问题 I'm using QTableView and QStandardItemModel now. In the QTableView, if you double-click a cell, this cell will get into edit mode and you can edit its content. Now I have a problem, I want to trigger the edit mode of an item by code (by command), what should I do? I cannot find proper function or slot in QTableView or QStandardItemModel. Do I need to emit any signal to get into edit mode? And which signal I should catch if I want to know when the editing is finish (user press "Enter" or click