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

PointHandler stays active after disabling of its parent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.1
    • None
    • Dell XPS 15 9560, Windows 10
    • Windows

    Description

      With the example code:

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Rectangle {
              id: glassPane
      
              anchors.fill: parent
              color: enabled ? "green" : "grey"
      
              PointHandler {
                  id: handler
      
                  target: Rectangle {
                      parent: glassPane
                      color: "red"
                      visible: handler.active
                      x: handler.point.position.x - width / 2
                      y: handler.point.position.y - height / 2
                      width: 100; height: width; radius: width / 2
                  }
              }
          }
      
          Timer {
              running: true
              interval: 3000
              onTriggered: glassPane.enabled = false
          }
      }
      

       

      1. Press the mouse button and hold it as long as glassPane will be blocked (grey background)
      2. PointHandler stays active

       

      I think the problem affects all InputHandlers

      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
            permotion88 Karol Polak
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes