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

PointHandler goes inactive releasing mouse button when multiple pressed

    XMLWordPrintable

Details

    • f2ba3bd9792500b4d3fcfd23b03098a32641ef4f, 7b8bea13e (dev), 07e0138fa (6.7), 1c7ada23e (6.6), 75512d6cd (tqtc/lts-6.5), c79309ed7 (tqtc/lts-6.2)

    Description

      // code placeholder
      import QtQuick 2.8
      import Qt.labs.handlers 1.0
      
      Item {
      width: 640
      height: 480
      Rectangle {
      id: rect
      width: 20
      height: 20
      radius: 10
      color: "green"
      x: handler.point.position.x
      y: handler.point.position.y
      }
      
      Text {
      id: text
      anchors.top: rect.bottom
      anchors.left: rect.right
      text: "<" + handler.point.position.x + ", " + handler.point.position.y + "> " + handler.point.pressedButtons + " [" + handler.point.pressure + "]"
      }
      
      PointHandler {
      id: handler
      acceptedButtons: Qt.LeftButton | Qt.RightButton
      }
      }
      
      

      Using the above if I press and hold the left mouse button then press the right mouse button, then releasing the right button stops tracking even though the left button is still pressed.

      I would expect that as long as any button was pressed the handler would remain active.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              babalas Justin Rens
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: