Obsolete Members for QNativeGestureEvent

QNativeGestureEvent 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.

공개 함수

(deprecated in 6.2) QNativeGestureEvent(Qt::NativeGestureType type, const QPointingDevice *device, const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, qreal realValue, quint64 sequenceId, quint64 intValue)
(deprecated in 6.0) const QPoint globalPos() const
(deprecated in 6.0) QPointF localPos() const
(deprecated in 6.0) const QPoint pos() const
(deprecated in 6.0) QPointF screenPos() const
(deprecated in 6.0) QPointF windowPos() const

멤버 함수 설명

[deprecated in 6.2] QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPointingDevice *device, const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, qreal realValue, quint64 sequenceId, quint64 intValue)

이 함수는 6.2 버전부터 사용 중단되었습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

intValue 가 더 이상 별도로 저장되지 않으므로 다른 생성자를 사용하십시오.

device 에서 비롯된 type 유형의 네이티브 제스처 이벤트를 생성합니다.

localPos, scenePos 및 globalPos 지점은 각각 수신 위젯 또는 항목, 창, 화면 또는 바탕 화면을 기준으로 한 제스처 위치를 지정합니다.

realValue 는 macOS 이벤트 매개변수이며, sequenceId 및 intValue 는 Windows 이벤트 매개변수입니다.

참고: realValue와 intValue 를 동시에 저장할수는 없습니다 . 둘 중 하나는 0이어야 합니다. realValue == 0이고 intValue!= 0인 경우, 이 값은 동일한 변수에 저장되며, 이 때 value()은 intValue 에 지정된 값을 반환합니다.

[deprecated in 6.0] const QPoint QNativeGestureEvent::globalPos() const

이 함수는 6.0 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

대신 ` globalPosition().toPoint()`를 사용하십시오.

제스처의 위치를 화면 좌표계에서 QPointF 객체로 반환합니다.

[deprecated in 6.0] QPointF QNativeGestureEvent::localPos() const

이 함수는 6.0 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

대신 position()를 사용하십시오.

이벤트를 수신한 위젯이나 항목을 기준으로, 제스처의 위치를 ` QPointF` 객체로 반환합니다.

[deprecated in 6.0] const QPoint QNativeGestureEvent::pos() const

이 함수는 6.0 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것이 좋습니다.

대신 ` position()` 또는 `toPoint()`를 사용하십시오.

이벤트를 수신한 위젯 또는 항목을 기준으로 마우스 커서의 위치를 반환합니다.

[deprecated in 6.0] QPointF QNativeGestureEvent::screenPos() const

이 함수는 6.0 버전부터 사용이 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것이 좋습니다.

대신 ` globalPosition()`를 사용하십시오.

제스처의 위치를 화면 좌표계에서 QPointF 객체로 반환합니다.

[deprecated in 6.0] QPointF QNativeGestureEvent::windowPos() const

이 함수는 6.0 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

대신 ` scenePosition()`를 사용하십시오.

이벤트를 수신한 창을 기준으로, 제스처의 위치를 QPointF 객체로 반환합니다.

© 2026 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.