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

When checking the activeAction() in a slot connected to aboutToHide() for a QMenu then it will give 0 on Mac in Carbon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.6.3, 4.7.0
    • Widgets: Main Window
    • None
    • Carbon - Mac OS 10.5
    • macOS

    Description

      When checking the activeAction() in a slot connected to aboutToHide() for a QMenu then it will return a null action on Mac in Carbon.

      Attached is an example (2nd patch.diff) that reproduces this in two separate cases (a context menu and via a menu in the menubar) with a patch that solves both cases. However when using the patch to solve it for the menu in the menubar case then aboutToHide() has to be connected to a slot by a queued connection to ensure the active action gets updated before the menu is hidden.

      Attachments

        1. patch.diff
          1 kB
        2. patch.diff
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes