Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.1
-
None
-
MacOS/X 10.6.2 Intel (Carbon or Cocoa)
-
-
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
For Gerrit Dashboard: QTBUG-7538 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
34175,4 | Update the state of native menus correctly on Mac | 4.8 | qt/qt | Status: MERGED | +2 | 0 |