qmlsensorgestures.qml Example File
qmlsensorgestures/qmlsensorgestures.qml
import QtQuick 2.0
import QtSensors 5.0
Rectangle {
id: viewArea
width: 320
height: 460
color: '#d6d6d6'
GestureList {
id: gestureList
parent: viewArea
anchors.left: viewArea.left
anchors.top: viewArea.top
anchors.right: viewArea.right
height: viewArea.height / 2
onSelectedGestureChanged: {
gesture.enabled = false;
gesture.gestureId = gestureList.selectedGesture;
gesture.gestureTitle = gestureList.selectedGesture;
}
}
GestureView {
id: gesture
parent: viewArea
anchors.left: viewArea.left
anchors.top: gestureList.bottom
anchors.right: viewArea.right
height: 100
}
GesturesView {
id: gestures
parent: viewArea
anchors.left: viewArea.left
anchors.top: gesture.bottom
anchors.right: viewArea.right
height: 100
}
}