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

ToolTip blocks Shortcut

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.10
    • Quick: Controls 2
    • None
    • 38df72713c4c4c5b4aae93ac5bcb92b86d380a8f

    Description

      Hover over the button in the application below, and then press "A"; the shortcut won't be activated.

      import QtQuick 2.9
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          id: window
          visible: true
          width: 640
          height: 600
      
          onActiveFocusItemChanged: print(activeFocusItem)
      
          Shortcut {
              sequence: "A"
              onActivated: print("activated shortcut")
          }
      
          Button {
              id: button
              text: "Just a button"
              focusPolicy: Qt.NoFocus
      
              ToolTip {
                  parent: button
                  visible: button.hovered
                  text: qsTr("Some helpful text")
                  modal: false
              }
          }
      }
      
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes