eventPoint QML Type
Qml-Äquivalent für QEventPoint. Mehr...
Import Statement: | import QtQuick |
In C++: | QEventPoint |
Detaillierte Beschreibung
eventPoint ist die Qml-Value-Typ-Darstellung von QEventPoint. Sie hat die gleichen Eigenschaften wie QEventPoint.
Die folgenden Eigenschaften sind verfügbar:
- bool
eventPoint.accepted
: siehe auch QEventPoint::accepted - PointerDevice
eventPoint.device
: siehe auch QEventPoint::device - size
eventPoint.ellipseDiameters
: siehe auch QEventPoint::ellipseDiameters - point
eventPoint.globalGrabPosition
: siehe auch QEventPoint::globalGrabPosition - point
eventPoint.globalLastPosition
: siehe auch QEventPoint::globalLastPosition - point
eventPoint.globalPosition
: siehe auch QEventPoint::globalPosition - point
eventPoint.globalPressPosition
: siehe auch QEventPoint::globalPressPosition - bool
eventPoint.grabPosition
: siehe auch QEventPoint::grabPosition - int
eventPoint.id
: siehe auch QEventPoint::id - point
eventPoint.lastPosition
: siehe auch QEventPoint::lastPosition - ulong
eventPoint.lastTimestamp
: siehe auch QEventPoint::lastTimestamp - point
eventPoint.position
: siehe auch QEventPoint::position - point
eventPoint.pressPosition
: siehe auch QEventPoint::pressPosition - int
eventPoint.pressTimestamp
: siehe auch QEventPoint::pressTimestamp - real
eventPoint.pressure
: siehe auch QEventPoint::pressure - real
eventPoint.rotation
: siehe auch QEventPoint::rotation - point
eventPoint.sceneGrabPosition
: siehe auch QEventPoint::sceneGrabPosition - point
eventPoint.sceneLastPosition
: siehe auch QEventPoint::sceneLastPosition - point
eventPoint.scenePosition
: siehe auch QEventPoint::scenePosition - ulong
eventPoint.pressTimestamp
: siehe auch QEventPoint::pressTimestamp - point
eventPoint.scenePressPosition
: siehe auch QEventPoint::scenePressPosition - enumeration
eventPoint.state
: siehe auch QEventPoint::state - real
eventPoint.timeHeld
: siehe auch QEventPoint::timeHeld - ulong
eventPoint.timestamp
: siehe auch QEventPoint::timestamp - pointingDeviceUniqueId
eventPoint.uniqueId
: siehe auch QEventPoint::uniqueId - vector2d
eventPoint.velocity
: siehe auch QEventPoint::velocity
State unterstützt die folgenden Werte:
Konstante | Beschreibung |
---|---|
EventPoint.Unknown | Unbekannter Zustand; wie Qt.TouchPointUnknownState |
EventPoint.Stationary | Der Ereignispunkt hat sich nicht bewegt; entspricht Qt.TouchPointStationary |
EventPoint.Pressed | Der Touchpoint oder Button ist gedrückt; entspricht Qt.TouchPointPressed |
EventPoint.Updated | Der Ereignispunkt wurde aktualisiert; entspricht Qt.TouchPointMoved |
EventPoint.Released | Der Berührungspunkt oder die Schaltfläche wurde losgelassen; entspricht Qt.TouchPointReleased |
Der Typ States ist ein Typedef für QFlags<State>. Er speichert eine ODER-Kombination von Statuswerten. Siehe auch 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 } } }
Siehe auch handlerPoint.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.