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

No wrap-around of conflicting &mnemonic key in QtQuick.Controls 2 Menu

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      Unlike platform menu or QMenu of QWidget, &mnemonic key in Controls 2 Menu doesn't wrap around.

      For example, pressing Alt+D+D+D+... doesn't move the current item inside the menu, but
      flips the visibility of the menu.

              Menu {
                  title: qsTr("&Debug")
                  Action { text: qsTr("&Do it") }
                  Action { text: qsTr("&Do it") }
                  Action { text: qsTr("&Do it") }
              }
      

      I understand QtQuick.Controls doesn't try to copy the platform's exact behavior, but I think
      it's common for menu to have ambiguous &mnemonic items.

      The wrapping behavior could be implemented without modifying Qt codebase, but
      it wasn't an easy task. For reference, my PoC-level hack is attached.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jirauser52013 user-c858f (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes