Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.7.0, 5.6.0, 5.9.0 Alpha, 5.12.3, 6.4.1
-
None
-
macOS, possibly all supported versions.
Mac OS 10.6.4. Qt 4.7.0/Cocoa or Qt 4.6.3/Carbon.
Description
For each MainWindow I create a menu bar, a menu, and an item in the menu with an ApplicationSpecificRole.
Qt automatically moves my menu item to the application menu (since it has ApplicationSpecificRole).
Unfortunately, when I have two windows and switch between them, the items in the Application menu are not cleared. This results in multiple copies of my menu item in the Application menu.
This is different behavior from Qt 4.6.
I've attached a sample application. Run the application. It will display two windows. Move the top one and click on the bottom one. Now click in the menu application menu. You'll see two 'Action' items at the top.
Run the same test under Qt 4.6 and you'll only see one.
A similar bug is http://bugreports.qt.nokia.com/browse/QTBUG-11176
Attachments
Issue Links
- is duplicated by
-
QTBUG-104712 macOS: Creating multiple windows with each defining same ApplicationSpecificRole menu item creates duplicates that are not even cleaned up on close
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-13898 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
447447,4 | Cocoa plugin, shared menu loader: account for all app-specific items | dev | qt/qtbase | Status: NEW | 0 | 0 |