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

Mnemonic not working for QAbstractButton when keyboard shortcut is also set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.2
    • GUI: Menus
    • None
    • Windows

      When a button uses a mnemomic and a shortcut, the first one does not work.

       

       

      Example:
      
      <widget class="QPushButton" name="buttonNext">
        <property name="text">
        <string>&amp;Mnemonic M</string>
      </property>
      <property name="shortcut">
        <string>Ctrl+D</string>
      </property> 

       

      Pressing Alt + M does not have an effect, while Ctrl + D does.

      Can easily be tried out in Qt Designer with "shortcut-and-mnemonic_minimal-example.ui" (see attachment).

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jens_moeller Jens Moeller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes