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

[REG 5.6.0->5.6.1] macOS: Adding submenus to a menu on aboutToShow() doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.6.1, 5.6.2
    • Fix Version/s: 5.6.2
    • Labels:
      None
    • Environment:
      macOS, any supported version as of 5.6.1.
    • Platform/s:
      macOS
    • Commits:
      38b09d34210805766afa8bdd6a1ef413447a89ed

      Description

      Adding submenus to a menu on aboutToShow() doesn't work. This is because the QMenu::aboutToShow() signal is emitted way after -[QCocoaMenuDelegate menu:updateItem:atIndex:shouldCancel:], thus missing the opportunity to attach the submenu to the menu item.

      See attached example.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                dedietri Gabriel de Dietrich (drgvond)
                Reporter:
                dedietri Gabriel de Dietrich (drgvond)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes