新手请教qml中三指滑动返回是怎么做出来的,最好有代码?

帮助上的内容太过简单。
import QtQuick 2.0

Rectangle {
width: 400; height: 400
MultiPointTouchArea {
anchors.fill: parent
touchPoints: [
TouchPoint { id: point1 },
TouchPoint { id: point2 }
]
}

  Rectangle {
      width: 30; height: 30
      color: "green"
      x: point1.x
      y: point1.y
  }

  Rectangle {
      width: 30; height: 30
      color: "yellow"
      x: point2.x
      y: point2.y
  }

}

看上去只能简单地移动图片什么地,请教一下,三指是怎么做的?