Please tall person to give directions,
CodePudding user response:
QTreeView has a key binding, is the shortcut key, F2 will enter a state of editor, create a new QTreeView class inheritance and overloading dataChanged when F2, into editable state (similar to use mouse click, edit), when the complete value modifying, will trigger dataChanged, functions, implementation in the dataChanged wantCodePudding user response:
Hzh_Beyond thanks, probably can know what you meanDifficult in QTreeView key bindings is how to achieve this?
The UI - & gt; TreeView - & gt; SetEditTriggers (QAbstractItemView: EditKeyPressed);
After setting, press F2 still no any response, I don't know why,