eventPoint QML Type
QEventPoint 에 해당하는 Qml입니다. 더 보기...
Import Statement: | import QtQuick |
In C++: | QEventPoint |
자세한 설명
eventPoint 는 QEventPoint 의 Qml 값 유형 표현입니다. QEventPoint 과 동일한 속성을 가집니다.
다음과 같은 속성을 사용할 수 있습니다:
- bool
eventPoint.accepted
: 참조 QEventPoint::accepted - PointerDevice
eventPoint.device
: 참조 QEventPoint::device - size
eventPoint.ellipseDiameters
: 참조 QEventPoint::ellipseDiameters - point
eventPoint.globalGrabPosition
: 참조 QEventPoint::globalGrabPosition - point
eventPoint.globalLastPosition
: 참조 QEventPoint::globalLastPosition - point
eventPoint.globalPosition
: 참조 QEventPoint::globalPosition - point
eventPoint.globalPressPosition
: 참조 QEventPoint::globalPressPosition - bool
eventPoint.grabPosition
: 참조 QEventPoint::grabPosition - int
eventPoint.id
: 참조 QEventPoint::id - point
eventPoint.lastPosition
: 참조 QEventPoint::lastPosition - ulong
eventPoint.lastTimestamp
: 참조 QEventPoint::lastTimestamp - point
eventPoint.position
: 참조 QEventPoint::position - point
eventPoint.pressPosition
: 참조 QEventPoint::pressPosition - int
eventPoint.pressTimestamp
: 참조 QEventPoint::pressTimestamp - real
eventPoint.pressure
: 참조 QEventPoint::pressure - real
eventPoint.rotation
: 참조 QEventPoint::rotation - point
eventPoint.sceneGrabPosition
: 참조 QEventPoint::sceneGrabPosition - point
eventPoint.sceneLastPosition
: 참조 QEventPoint::sceneLastPosition - point
eventPoint.scenePosition
: 참조 QEventPoint::scenePosition - ulong
eventPoint.pressTimestamp
: 참조 QEventPoint::pressTimestamp - point
eventPoint.scenePressPosition
: 참조 QEventPoint::scenePressPosition - enumeration
eventPoint.state
: 참조 QEventPoint::state - real
eventPoint.timeHeld
: 참조 QEventPoint::timeHeld - ulong
eventPoint.timestamp
: 참조 QEventPoint::timestamp - pointingDeviceUniqueId
eventPoint.uniqueId
: 참조 QEventPoint::uniqueId - vector2d
eventPoint.velocity
: 참조 QEventPoint::velocity
State는 다음 값을 지원합니다:
Constant | 설명 |
---|---|
EventPoint.Unknown | 알 수 없는 상태; Qt.TouchPointUnknownState와 동일합니다. |
EventPoint.Stationary | 이벤트 포인트가 움직이지 않음; Qt.TouchPointStationary와 같음 |
EventPoint.Pressed | 터치 포인트 또는 버튼이 눌림; Qt.TouchPointPressed와 같음. |
EventPoint.Updated | 이벤트 포인트가 업데이트 되었습니다; Qt.TouchPointMoved와 동일합니다. |
EventPoint.Released | 터치 포인트나 버튼이 해제되었다; Qt.TouchPointReleased와 같다. |
States 타입은 QFlags<State> 에 대한 타입 정의입니다. State 값의 OR 조합을 저장합니다. 참고 항목 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도 참조하십시오 .
© 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.