PDA

View Full Version : QTableView and Editor



karlkar
11th July 2013, 22:33
Hi!
I have a TableView with one column that is handled by a combobox delegate. After choosing option in combobox it stays in editor mode, so when user clicks from menu "File"->"Save as csv" the chosen value is not yet in model, and it is not saved to file. How can I close editor when I do not know in which cell it is opened?

ChrisW67
12th July 2013, 06:06
Calling setFocus() on a widget other than the table view should do it.