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

Hover handling is broken for ListView's items in specific scenario

    XMLWordPrintable

Details

    • macOS, Windows
    • 1309bac26 (dev), 67e97b0e6 (6.4), 36eead2ff (6.5)

    Description

      Hover handling is broken for ListView's items in specific scenario. See attached video Screen Recording 2022-11-17 at 13.38.09.mov

      Code sample:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
      
          ListView {
              id: view
              anchors.fill: parent
              model: 200
              delegate: Rectangle {
                  width: view.width
                  height: 60
                  border.width: 1
                  color: hh.hovered ? 'blue' : 'white'
                  HoverHandler { id: hh }
              }
          }
      
          Rectangle {
              anchors.centerIn: parent
              width: 200
              height: 200
              color: hh2.hovered ? '#00CC00' : '#00FF00'
              HoverHandler {
                  id: hh2
                  blocking: true // setting this also has no effect
              }
          }
      }
      

       

      Steps to reproduce:
      1. Build and run sample code
      2. Hover green rectangle
      3. Scroll the view via touchpad or a mouse wheel
       

      Attachments

        Issue Links

          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
              studiosus Vladimir Belyavsky
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes