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

Regression: HoverHandler prevents other items or handlers behind it from being hovered even when blocking is false

    XMLWordPrintable

Details

    Description

      Consider the following:

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Button {
              id: button
              width: 200
              height: 200
              text: hovered ? "Hovered: Yes" : "Hovered: No"
          }
      
          Item {
              id: hoverArea
      
              anchors.fill: button
      
              z: 99
      
              HoverHandler {
                  blocking: false // by default it is also false
                  grabPermissions: PointerHandler.ApprovesTakeOverByAnything // this does not seem to change anything
              }
          }
      }
      
       

      Even though the hover handler is not supposed to block, when I hover the control (button) it does not set `hovered` state anymore.

      This was working fine with Qt 6.2 (`blocking` property was not available). I do not know since when this became an issue.

      srutledg

      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
            fuzun Fatih Uzunoglu
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes