QGraphicsSceneHoverEvent Class
QGraphicsSceneHoverEvent 클래스는 그래픽 뷰 프레임워크에서 호버 이벤트를 제공합니다. 더 보기...
Header: | #include <QGraphicsSceneHoverEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
상속합니다: | QGraphicsSceneEvent |
공용 함수
virtual | ~QGraphicsSceneHoverEvent() |
QPointF | lastPos() const |
QPointF | lastScenePos() const |
QPoint | lastScreenPos() const |
Qt::KeyboardModifiers | modifiers() const |
QPointF | pos() const |
QPointF | scenePos() const |
QPoint | screenPos() const |
상세 설명
QGraphicsView 이 QHoverEvent 이벤트를 받으면 이를 QGraphicsSceneHoverEvent로 변환합니다. 그런 다음 이벤트는 뷰와 연결된 QGraphicsScene 로 전달됩니다.
QGraphicsSceneMouseEvent, QGraphicsSceneContextMenuEvent, QGraphicsSceneWheelEvent, QHoverEvent도 참조하십시오 .
멤버 함수 문서
[virtual noexcept]
QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent()
이벤트를 삭제합니다.
QPointF QGraphicsSceneHoverEvent::lastPos() const
마지막으로 기록된 마우스 커서 위치를 항목 좌표로 반환합니다.
lastScenePos(), lastScreenPos() 및 pos()도 참조하세요 .
QPointF QGraphicsSceneHoverEvent::lastScenePos() const
이벤트 마우스 커서 위치를 장면 좌표로 생성한 뷰에서 수신한 이전 마우스 또는 마우스오버 이벤트의 마지막 기록인 장면 좌표를 반환합니다.
lastPos(), lastScreenPos() 및 scenePos()도 참조하십시오 .
QPoint QGraphicsSceneHoverEvent::lastScreenPos() const
마지막으로 기록된 마우스 커서 위치를 화면 좌표로 반환합니다. 마지막으로 기록된 위치는 이벤트를 생성한 뷰에서 수신한 이전 마우스 또는 마우스오버 이벤트의 위치입니다.
lastPos(), lastScenePos() 및 screenPos()도 참조하세요 .
Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers() const
마우스오버 이벤트가 전송된 순간의 키보드 수정자를 반환합니다.
QPointF QGraphicsSceneHoverEvent::pos() const
마우스오버 이벤트가 전송된 시점의 마우스 커서 위치를 항목 좌표로 반환합니다.
scenePos() 및 screenPos()도 참조하세요 .
QPointF QGraphicsSceneHoverEvent::scenePos() const
마우스 오버 이벤트가 전송된 순간의 마우스 커서 위치를 장면 좌표로 반환합니다.
QPoint QGraphicsSceneHoverEvent::screenPos() const
마우스오버 이벤트가 전송된 시점의 마우스 커서 위치를 화면 좌표로 반환합니다.
© 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.