QStyledItemDelegate on a QTableView problem
-
Hi all,
I have a curious problem when using QStyledItemDelegate class on a QTableView. In fact I started from wiki snippets 'Combo Boxes in Item Views', except than my Qtable is not a QTableWidget but a QTableView populated by a QAbstractTableModel.
All is working fine except when I try enter edit mode (by dbclick for ex) the function createEditor() of the delegate class is never called although editTriggers are set to AllEditTriggers.
I must forget something to make the tableView editable, but what ?
-
-
Let me give you a hint:
"an editable model":http://doc.qt.nokia.com/4.7/model-view-programming.html#an-editable-model
The points are the method flags and setData.