QML 相当于 QEventPoint . 更多...
| import 语句: | import QtQuick |
| 实例化: | QEventPoint |
eventPoint is the Qml value type representation of QEventPoint 。它拥有相同特性如 QEventPoint .
下列特性可用:
eventPoint.accepted
:另请参阅
QEventPoint::accepted
eventPoint.device
:另请参阅
QEventPoint::device
eventPoint.ellipseDiameters
:另请参阅
QEventPoint::ellipseDiameters
eventPoint.globalGrabPosition
:另请参阅
QEventPoint::globalGrabPosition
eventPoint.globalLastPosition
:另请参阅
QEventPoint::globalLastPosition
eventPoint.globalPosition
:另请参阅
QEventPoint::globalPosition
eventPoint.globalPressPosition
:另请参阅
QEventPoint::globalPressPosition
eventPoint.grabPosition
:另请参阅
QEventPoint::grabPosition
eventPoint.id
:另请参阅
QEventPoint::id
eventPoint.lastPosition
:另请参阅
QEventPoint::lastPosition
eventPoint.lastTimestamp
:另请参阅
QEventPoint::lastTimestamp
eventPoint.position
:另请参阅
QEventPoint::position
eventPoint.pressPosition
:另请参阅
QEventPoint::pressPosition
eventPoint.pressTimestamp
:另请参阅
QEventPoint::pressTimestamp
eventPoint.pressure
:另请参阅
QEventPoint::pressure
eventPoint.rotation
:另请参阅
QEventPoint::rotation
eventPoint.sceneGrabPosition
:另请参阅
QEventPoint::sceneGrabPosition
eventPoint.sceneLastPosition
:另请参阅
QEventPoint::sceneLastPosition
eventPoint.scenePosition
:另请参阅
QEventPoint::scenePosition
eventPoint.pressTimestamp
:另请参阅
QEventPoint::pressTimestamp
eventPoint.scenePressPosition
:另请参阅
QEventPoint::scenePressPosition
eventPoint.state
:另请参阅
QEventPoint::state
eventPoint.timeHeld
:另请参阅
QEventPoint::timeHeld
eventPoint.timestamp
:另请参阅
QEventPoint::timestamp
eventPoint.uniqueId
:另请参阅
QEventPoint::uniqueId
eventPoint.velocity
:另请参阅
QEventPoint::velocity
State supports the following values:
| 常量 | 描述 |
|---|---|
EventPoint.Unknown
|
Unknown state; same as Qt.TouchPointUnknownState |
EventPoint.Stationary
|
The event point did not move; same as Qt.TouchPointStationary |
EventPoint.Pressed
|
The touch point or button is pressed; same as Qt.TouchPointPressed |
EventPoint.Updated
|
The event point was updated; same as Qt.TouchPointMoved |
EventPoint.Released
|
The touch point or button was released; same as Qt.TouchPointReleased |
States 类型是 typedef 对于 QFlags<State> . It stores an OR combination of State values. See also QEventPoint::States
TapHandler { gesturePolicy: TapHandler.ReleaseWithinBounds // exclusive grab on press onGrabChanged: (transition, eventPoint) => { switch (transition) { case PointerDevice.GrabExclusive: console.log("took exclusive grab of point", eventPoint.id, "on", eventPoint.device.name) break case PointerDevice.UngrabExclusive: console.log("gave up exclusive grab of point", eventPoint.id, "on", eventPoint.device.name) break case PointerDevice.CancelGrabExclusive: console.log("exclusive grab of point", eventPoint.id, "on", eventPoint.device.name, "has been cancelled") break } switch (eventPoint.state) { case EventPoint.Pressed: console.log("on press @", eventPoint.position); break case EventPoint.Updated: console.log("on update @", eventPoint.position); break case EventPoint.Released: console.log("on release @", eventPoint.position); break default: console.log(eventPoint.position, "state", eventPoint.state) break } } }
另请参阅 handlerPoint .