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

QGraphicsProxyWidget::conetextMenuEvent easy out accepts event

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.7.2
    • Widgets: GraphicsView
    • None
    • Windows 7 64bit

    Description

      Not sure if this a bug, but here we go. QGraphicsProxyWidget::contextMenuEvent has the following easy out check,

      QGraphicsProxyWidget::conetextMenuEvent
      void QGraphicsProxyWidget::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
      {
          Q_D(QGraphicsProxyWidget);
          if (!event || !d->widget || !d->widget->isVisible() || !hasFocus())
              return;
      

      The QGraphicsSceneContextMenuEvent that is passed in defaults to accepted. If you return immediately, should not the proxy then ignore the event?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            steno Jon Mullen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes