The documentation says
which means that signal to close to editor is emitted by the QAbstractItemDelegate (base class), we don't have any control over this, basically we cannot stop editor being closed from delegate, unless we block all signals from the delegate which is not practicalvoid QAbstractItemDelegate::closeEditor ( QWidget * editor, QAbstractItemDelegate::EndEditHint hint = NoHint ) [signal]
This signal is emitted when the user has finished editing an item using the specified editor.
The hint provides a way for the delegate to influence how the model and view behave after editing is completed. It indicates to these components what action should be performed next to provide a comfortable editing experience for the user. For example, if EditNextItem is specified, the view should use a delegate to open an editor on the next item in the model.
another way (other than event filtering) would be to send a signal to the QAbstractItemView::edit () slot of the view to restart the editor (after validating the data)
Bookmarks