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

Mac: a menu item does not trigger if it has been hidden and then visible.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.7
    • 5.3.2
    • Widgets: Main Window
    • None

    Description

      On mac if a menu items visibility has been set to false and then set back to true in aboutToHide() and aboutToShow(), Them those action does not trigger which were set setVisible(false) in aboutToHide().

      Attached example reproduces the issue.
      Steps
      run the application and then check Edit menu you will see copy/cut etc
      Press hold shift key and then click edit menu you will see cop/wShift cut/wshit
      now click any of these items it will not trigger.

      Exact same code works on windows.
      The reason why it does not work on mac becuse abouttohide() hits before action trigger.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes