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

ContextMenu event is not generated for non-widget windows

    XMLWordPrintable

Details

    • 3d71c4b740d23d5c3f380f495990f35ea17dc2a0 (qt/qtbase/dev)

    Description

      Context menu events are not generated for mouse presses for any other type of window except widget windows. For example, when embedding QOpenGLWindow or QQuickView through QWidget::createWindowContainer, the event is never generated for those windows. Looks like that is because they are generated from mouse press events only in QWidgetWindow::handleMouseEvent() at src/widgets/kernel/qwidgetwindow.cpp:563 .

      Context menu events from keyboard do work.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes