Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1345

QItemDelegate: It would be very useful if there was a way to handle the QEvent::ContextMenu event

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes