Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
4.3.2
-
None
Description
It would be very useful if there was a way for the QItemDelegate to handle the QEvent::ContextMenu event, e.g a QAbstractItemDelegate::contextMenuEvent() function could work for this case.
—
On the view set the setContextMenuPolicy(Qt::CustomContextMenu) and then connect to the signal QWidget::customContextMenuRequested ( const QPoint & pos ) and then use indexAt(pos) to determine what the menu options should be.