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

Mac OSX: Opening a context menu causes the menu bar to switch from the window menu to the default menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.1.1
    • 5.1.0 Beta 1
    • GUI: Window management
    • None
    • Mac OS X 10.6 and 10.8
    • macOS
    • c4dfd13f7881b9029aaa1d5b8561492bd9026e98

    Description

      When a context menu is opened, the menu bar switches from the window menu to the default (application-wide) menu. It remains at the default menu after the context menu is closed.

      Clicking away from the window (to another application) and back restores the window menu.

      The attached project demonstrates the problem. Right-click on the window to open a context menu and see the menu bar change. The attached project also provides a FixedContextMenu class which, substituted for QMenu, partially fixes the problem. (The menu bar switches to the default while the context menu is open, but switches back when the context menu closes.)

      This worked fine in Qt 4.8.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            jlstrecker Jaymie Strecker
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes