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

Regression: Qt 4.5.3 OS X Cocoa: sub-menus of main menu never re-enable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • 4.6.0
    • 4.5.3
    • Widgets: Main Window
    • None
    • macOS

      Our main (application) menu has various submenus that should dynamically enable and disable, based on various states/conditions. This worked fine with 452/Carbon, 452/Cocoa and with 453/Carbon. However, with 453/Cocoa (only) those submenus incorrectly remain disabled at all times, and cannot be re-enabled.

      I think this should reproduce it (haven't had a chance to try yet - sorry):

      Create an application with a main menu bar, a submenu (e.g. File) and add a further submenu below that, e.g. 'File | Load recent'. Add a dummy action to that lowest level of submenu. After constructing the menus, call QMenu::setEnable(false) for the 'File | Load recent' sub-menu.

      Add a button that calls QMenu::setEnable(true) for the 'File | Load recent' sub-menu. Click it. The sub-menu should re-enable, but it won't.

      Thanks and best regards,
      Martin Dyde,
      Milan Digital Audio LLC.
      http://www.hauptwerk.com/
      http://www.milandigitalaudio.com/

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

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            martindy Martin Dyde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes