Obsolete Members for QHoverEvent

QHoverEvent 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.

공용 함수

(deprecated in 6.3) QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())
(deprecated in 6.0) QPoint pos() const
(deprecated in 6.0) QPointF posF() const

멤버 함수 문서

[deprecated in 6.3] QHoverEvent::QHoverEvent(QEvent::Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice *device = QPointingDevice::primaryPointingDevice())

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

대신 다른 생성자를 사용하세요(전역 위치가 필요함).

device 에서 시작된 호버 이벤트 객체를 생성합니다.

type 매개변수는 QEvent::HoverEnter, QEvent::HoverLeave, 또는 QEvent::HoverMove 여야 합니다.

pos 은 수신 위젯을 기준으로 한 현재 마우스 커서의 위치이고 oldPos 은 이전 위치입니다. modifiers 은 이벤트 발생 시 모든 키보드 수정자의 상태를 유지합니다.

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

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

대신 position().toPoint()를 사용하세요.

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

QEvent::HoverLeave 이벤트에서 이 위치는 항상 QPoint(-1, -1)입니다.

oldPos()도 참조하세요 .

[deprecated in 6.0] QPointF QHoverEvent::posF() const

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

대신 position()를 사용하세요.

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

QEvent::HoverLeave 이벤트에서 이 위치는 항상 QPointF(-1, -1)입니다.

oldPosF()도 참조하세요 .

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