Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.3, 6.8.3
-
None
-
macOS 15.4 Sequoia
-
-
84da5450c (dev), 9db5beae7 (6.9), 9a59e1004 (tqtc/lts-6.8)
Description
Native Mac style normally suppresses icons in QMenu actions, but it's documented that you can make them appear using QAction::setIconVisibleInMenu or app.setAttribute(Qt::AA_DontShowIconsInMenus, false).
The problem is that menu-action icons always appear in Normal mode, even if the QAction itself is disabled. The exception is when the entire menu is disabled (e.g., when a modal dialog is open).
Screenshot and code example attached. (Example is a modified copy of Qt Creator's built-in menus example project.)
Attachments
For Gerrit Dashboard: QTBUG-135934 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
640118,6 | macOS: use correct icon pixmaps in native menus | dev | qt/qtbase | Status: MERGED | +2 | 0 |
643312,2 | macOS: use correct icon pixmaps in native menus | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
643429,2 | macOS: use correct icon pixmaps in native menus | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |