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

Hover is not reset properly with touchscreens

    XMLWordPrintable

Details

    Description

      1 : Create a button (controls 2.0)
      2 : Click on button with a touchscreen and log the onHoveredChanged signal.

      What is happening with a touch screen :
      the hovered property is set to true on click but is never reset to false on release.

      It seems that on touch screen only, hovered is disabled due to this.
      QTBUG-44267

      Our application can use a touch device and a mouse at the same time.
      The hover should be disabled on touch events or should behave correctly. But the observed behavior is inconsistent.

      import QtQuick 2.0
      import QtQuick.Controls 2.2

      Button {
      hoverEnabled:true

      onHoveredChanged :

      { console.log(hovered) }

      }

      Attachments

        Issue Links

          Activity

            People

              srutledg Shawn Rutledge
              mathieut Mathieu TOURNIER
              Votes:
              4 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated: