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

QHoverEvent::HoverMove Triggered Repeatedly on Stationary Mouse When Unrelated QQuickItem Changes

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      In a Qt Quick application, a QQuickItem that receives QHoverEvent events of type HoverMove continues to receive these events repeatedly, even when the mouse is stationary. This happens only when another unrelated QQuickItem is being updated or modified (e.g., by animations, property changes, etc.).

      This results in:

      • Unexpected behavior in applications relying on hover logic.
      • Performance issues due to redundant event handling.

      Steps to Reproduce:

      1. Open and run the attached example project in Qt Creator
      1. Hover the mouse cursor over the item that handles QHoverEvent.
      1. Observe repeated HoverMove events being received by the stationary item.

      Expected Result:
      HoverMove should only be emitted when the mouse is actually moving, not as a result of unrelated UI updates.

      Actual Result:
      HoverMove is emitted repeatedly even though the mouse is not moving, solely because another QQuickItem is changing.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            chakib Chakib Boutaghane
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes