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

Mac-style QMenu icons never show Disabled mode

    XMLWordPrintable

Details

    • macOS
    • 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

        1. menus.zip
          9 kB
        2. menus.png
          menus.png
          95 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            barbicels- R Brown
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes