Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7
-
None
-
Fedora 39, KDE Plasma
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