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

Using multiple PointHandler if starting touch is in the same moment is impossible

XMLWordPrintable

    • 358a72b6ecd0fef69edf5355f299af10225a6c8b (qt/qtdeclarative/5.12.1)

      In the documentation of PointHandler you can read that it "can be used to show feedback about a touchpoint" for example with using it in the "glass pane"

      Unfortunately, this is not possible with more of Point Handlers.

      If you touch it with three fingers exactly at the same time, only one (or even none) PointHandler will be active. If we start with only one finger, then we can add next and everything works ok. Try it with the following example:

      Item {
          id: glassPane
          z: 10000
          anchors.fill: parent
      
          PointHandler {
              id: ph1
      
              target: Rectangle {
                  parent: glassPane
                  visible: ph1.active
                  x: ph1.point.position.x - width / 2
                  y: ph1.point.position.y - height / 2
                  width: 140
                  height: width
                  radius: width / 2
                  color: "orange"
                  opacity: 0.3
              }
          }
      
          PointHandler {
              id: ph2
      
              target: Rectangle {
                  parent: glassPane
                  visible: ph2.active
                  x: ph2.point.position.x - width / 2
                  y: ph2.point.position.y - height / 2
                  width: 140
                  height: width
                  radius: width / 2
                  color: "orange"
                  opacity: 0.3
              }
          }
      
          PointHandler {
              id: ph3
      
              target: Rectangle {
                  parent: glassPane
                  visible: ph3.active
                  x: ph3.point.position.x - width / 2
                  y: ph3.point.position.y - height / 2
                  width: 140
                  height: width
                  radius: width / 2
                  color: "orange"
                  opacity: 0.3
              }
          }
      }
      

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

            srutledg Shawn Rutledge
            permotion88 Karol Polak
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes