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

MouseArea and HoverHandler inside of ListView reports invalid hovered state

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. hh_bug_source.zip
          4 kB
        2. hh_bug_video.mp4
          415 kB
        3. ma_bug_source.zip
          4 kB
        4. ma_bug_video.mp4
          143 kB
        5. ma-simpler.qml
          2 kB
        6. ma-simpler-fixed.qml
          2 kB
        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
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes