Qt 6.11 is out! See what's new in the release
blog
Read cursor position as it changes using `HoverHandler`?
-
Hi,
I'm building an application using QtQuick/QML and I require getting an updated position of the cursor relative to my widget as it changes (user hovers the cursor) to update some UI stuff. (I'm using
QQuickFramebufferObject).I tried to use
HoverHandler, but the only signals it has aregrabChangedandcanceledand none example covers my simple use case. -
HoverHandlerhas apointproperty which has apositionproperty.Alternatively since you are implementing your QQFBO in c++ you can override
hoverMoveEventand handle it there (after callingsetAcceptHoverEvents).