MultiPointTouchArea を機能させようとしています... QT で本当に基本的な例を見つけました:
http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-multipointtoucharea.html
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
}
}
しかし、マウスを動かしても何も起こりません...位置は常に x = 0、y = 0です。領域はマウス/タッチ イベントに対して透明になります。」MultiPointTouchArea は無効になっていないので、動作するはずですか? それとも私が間違っていますか?