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

Hover should be disabled on Qt Quick Controls when they are used on touchscreens

    XMLWordPrintable

    Details

    • Commits:
      5f7f27759e23fb1e5f3779a580adcf5bb6d5ecd6

      Description

      Button's hover is not behaving correctly on touch devices, the "hovered" property is set to "true" and remains "true" despite of release of the button.

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      
      ApplicationWindow {
          id: root
          width: 800
          height: 600
          visible: true
          Rectangle {
              anchors.fill: parent
              color: "grey"
              ListView {
                  id: list
                  anchors.fill: parent
                  anchors.margins: 20
                  clip: true
                  interactive: true
                  model: 50
                  delegate: numberDelegate
                  spacing: 1
              }
              Component {
                  id: numberDelegate
                  Button {
                      width: list.width
                      height: list.height / 7
                      text: index+". pressed: " + (pressed ? "true" : "false")
                  }
               }
          }
      }
      

      Hover should be disabled on touch only devices

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes