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

Right click on inactive window opens context menu that behaves incorrectly ( disappear etc. )

    XMLWordPrintable

Details

    • macOS

    Description

      A context menu behaves incorrectly if it is opened by a mouse right click on an inactive window. The context menu disappears if the mouse cursor is moved away from the menu without first touching the menu. The menu stays open if the mouse cursor is moved on top of the menu. After the mouse visits the menu surface the menu no longer disappears even if the mouse is moved away from it. If the right mouse button is then clicked again elsewhere on the application window, the first right click closes the previous context menu that was left open but doesn't open a new one.

      Steps to reproduce:
      1. Open 'Menus' example in Qt Creator.
      2. Open some native application with a small window alongside of the Qt app 'Menus'.
      3. Click on the native app so that Qt app is left inactive (without focus).
      4. Bring the mouse cursor on the inactive Qt app and press right mouse button.
      EXPECTED: Qt app remains inactive but a context menu appears. The context menu stays open regardless of how the mouse cursor is moved. Another right click somewhere else on the app window closes the previous context menu and opens a new one in the new location.
      ACTUAL: The context menu exhibits the incorrect behavior described above.

      This might be related to QTBUG-48318

      Attachments

        Issue Links

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

          Activity

            People

              richard Richard Moe Gustavsen
              risto.sipola Risto Sipola
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes