I have my own table model subclassed from QAbstractTableModel
. It is installed on my view (subclassed from QTableView
). Inside the view, I'm using a delegate class (subclassed from QItemDelegate
) for editing items.
I want to set up the following behaviour: when I finish editing data using my delegate, the next item in the model (the item in the next row and in the same column) should become editable.
Documentation says that it is provided by QAbstractItemDelegate::EditNextItem
hint which is sent in closeEditor()
signal. But by default this signal is sent with QAbstractItemDelegate::NoHint
parameter. The problem is that I don't have to call this signal explicitly while reimplementing basic QItemDelegate
virtual functions, such as setModelData()
for example.
Documentation also says that this signal is sent by interior event filter which is installed on item delegate while calling QAbstractItemDelegate()
constructor.
How could I provide my own EndEditHint
in closeEditor()
signal?