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

Button: tooltip not shown when the button is disabled

    XMLWordPrintable

Details

    • 831efa14e91cfa358e57a32197578d41c2ae1b24 (qt/qtdeclarative/dev)
    • 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-controls2-workaround.qml
          0.5 kB
        2. main-controls2.qml
          0.2 kB
        3. main-controls1.qml
          0.2 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: