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.)