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, scenePosglobalPos 포인트는 각각 수신 위젯 또는 항목, 창, 화면 또는 데스크톱을 기준으로 제스처 위치를 지정합니다.

realValue 는 macOS 이벤트 매개변수이고 sequenceIdintValue 은 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 로 반환합니다.

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