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

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

XMLWordPrintable

    • Linux/Wayland

      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.

        1. QTBUG-136976.zip
          3 kB
          Chakib Boutaghane
        For Gerrit Dashboard: QTBUG-136976
        # Subject Branch Project Status CR V

            jarlamsa Jarno Lämsä
            chakib Chakib Boutaghane
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change