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

Invalid Hover events from touch inputs

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      When running an Qt/Quick application on X11 using a touch input I can see Hover events being sent related to QEvent::Enter/QEvent::Leave - see QQuickWindow::event.

      The problem is with the following sequence:

      a) Window is not active

      b) Touch inside of the window -> the control at the position receives a QEvent::HoverEnter

      c) Touch inside of the window on another item -> nothing

      d) Touch outside of the window: QEvent::HoverLeave is sent

      Not sure if sending Hover events because of touch inputs makes sense - maybe when having a proximity sensor.

      But the specific problem here is, that my controls have a different appearance, when being hovered and because of the missing HoverLeave event the initially hovered item stays in this state although I have touched many different items later.

      IMO the correct behavior would be not to send any hover events for touch inputs.

      Attachments

        Issue Links

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

          Activity

            People

              mhqanbari MohammadHossein Qanbari
              uwe Uwe Rathmann
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes