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()도 참조하십시오 .
© 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.