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

PointHandler remains active after clicking the left and right mouse buttons

XMLWordPrintable

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

      With example code: 

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Flickable {
              id: flickable
      
              anchors.fill: parent
          }
          Item {
              id: glassPane
      
              anchors.fill: parent
      
              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
                  }
              }
          }
      }
      

      1. Press and hold left mouse button

      2. Keeping the left button all the time press the right button as well

      3. Release both buttons

       

      PointHandler remains active.  The problem only occurs if flickable is below.

        For Gerrit Dashboard: QTBUG-78083
        # Subject Branch Project Status CR V

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            permotion88 Karol Polak
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change