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

QML HoverHandler doesn't unhover on tablet proximity leave on Wayland

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      Consider the following snippet

      import QtQuick
      
      Window {
          id: root
          visible: true
      
          HoverHandler {
              id: hovHandler
              acceptedDevices: PointerDevice.Stylus
          }
      
          Rectangle {
              color: hovHandler.hovered ? "teal" : "white"
              anchors.fill: parent
          }
      } 

      When hovering over the window with a (Wacom) tablet stylus the window turns teal as expected. However when moving the stylus outside of the window or lifting the stylus outside of the proximity of the tablet it stays teal, indicating that the HoverHandler is still in hovered state.

      This is on Plasma Wayland. It works somewhat better on Plasma X11 (moving the stylus outside of the window is correctly detected, but lifting the stylus is not) and on Windows (both moving to the side and lifting the stylus is detected, but it's generally rather glitchy).

      This was tested with Qt 6.7 as well as current dev

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            nicolasfella Nicolas Fella
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes