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

Button: tooltip not shown when the button is disabled

    XMLWordPrintable

    Details

    • Commits:
      831efa14e91cfa358e57a32197578d41c2ae1b24 (qt/qtdeclarative/dev)
    • Sprint:
      Bug Fixing Week Q2/2020

      Description

      The tooltip is not shown when the mouse is hovered above a disabled button.

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      Item {
          width: 300
          height: 300
          Button {
              text: "button"
              tooltip: "hello button"
              enabled: false
          }
      }
      

      For controls 2: Following code is not showing toolTip when a button is disabled

          Button {
              id: conbutton
              text: "test"
              enabled: false
              ToolTip.visible : hovered
              ToolTip.text : "test tooltip"
      
          }
      

        Attachments

        1. main-controls1.qml
          0.2 kB
        2. main-controls2.qml
          0.2 kB
        3. main-controls2-workaround.qml
          0.5 kB

          Issue Links

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

            Activity

              People

              Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              carochao Caroline Chao (Inactive)
              Votes:
              24 Vote for this issue
              Watchers:
              27 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes