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

Disable item does not disable its HoverHandler

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      For code  below:

      import QtQuick
      import QtQuick.Controls
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          Rectangle {
              enabled: false
              anchors.fill: parent
              id: rectangle
              color: hvr.hovered ? "blue" : "red"
              HoverHandler {
                  id: hvr
              }
              TapHandler {
                  onTapped: rectangle.visible = false
              }
          }
      } 

      Disable rectangle itself disables TapHandler but does not disable HoverHandler. Is this intentional? If so, how can I disable all mouse events for item and its children?

      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
            astereborn Yixue Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes