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

MouseArea and HoverHandler inside of ListView reports invalid hovered state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.10, 5.15.2, 6.4.0 RC1
    • None
    • Windows 10, macOS Catalina
    • macOS, Windows

      I'm trying to track the hovered state of some items inside of ListView.

      The problem is that both MouseArea.containsMouse and HoverHandler.hovered can be set to true even if mouse cursor is not located above them anymore.

      I've attached minimal reproducible samples for both controls, and also video. The bug behaves differently under different OSes and for different controls. Inside of our real application it behaves even worse than in this minimal reproducible sample application.

        1. ma-simpler-fixed.qml
          2 kB
        2. ma-simpler.qml
          2 kB
        3. ma_bug_video.mp4
          143 kB
        4. ma_bug_source.zip
          4 kB
        5. hh_bug_video.mp4
          415 kB
        6. hh_bug_source.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes