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

QML Menu Accelerators don't get displayed correctly with styling

    XMLWordPrintable

Details

    Description

      When using styling as suggested at:
      https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-menu
      Accelerators don’t get painted correctly because instead of underlining the character, it shows the & symbol.

      In Qt 5.15.13 they seem to trigger the shortcut regardless they are not displayed with underline but in Qt 6.4 they don't work at all due to https://bugreports.qt.io/browse/QTBUG-96630

      Please find the example attached.
      Build and run the example and click the red rectangle to open the menu and see that accelerated character are not underlined

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-111965
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              foxxx Tuukka Kettunen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change