I have a table view in a form. When the user clicks the add button to add a new record, I would like to put the focus on the first column in the new record for editing, so the cursor should be there as soon as the user clicks the add button.
I've gotten as far as adding the new record and getting the row selected, but I'm stuck on how to get the first column editable with the cursor in it.
It works ok if you double click the first column for editing, but I would like the program to do that for the user.
I tried this since the row is already selected by the program:
Doesn't do what I need. Someone must have figured out how to do this already?Qt Code:
ui->tvMemories->edit(index);To copy to clipboard, switch view to plain text mode
Thanks for any ideas.
Bookmarks