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

Disabling a top-level menu has no effect under MacOS/X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.4
    • 4.6.1
    • None
    • MacOS/X 10.6.2 Intel (Carbon or Cocoa)
    • macOS
    • d412f11cea4dc336c684aafcd8979d5cec751cb5

    Description

      Disabling a top-level menu (i.e. one that appears in the QMenuBar) doesn't work under MacOS/X (Cocoa or Carbon).

      To reproduce:

      1) Edit $QTDIR/examples/widgets/imageviewer/imageviewer.cpp
      2) At line 227 of that file, add this line:

      fileMenu->menuAction()->setEnabled(false); // disable the File menu!

      3) Compile and run the program

      Note that under Linux and Windows, the File menu is disabled, this is the behavior I expected. Under MacOS/X, however, the File menu remains enabled; I think that is a bug.

      Attachments

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

        Activity

          People

            pamatila Pasi Matilainen (Inactive)
            jfriesne Jeremy Friesner
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes