이 페이지에서

QGraphicsSceneHelpEvent Class

QGraphicsSceneHelpEvent 클래스는 툴팁이 요청될 때 이벤트를 제공합니다. 더 보기...

헤더: #include <QGraphicsSceneHelpEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
상속: QGraphicsSceneEvent

공개 함수

virtual ~QGraphicsSceneHelpEvent()
QPointF scenePos() const
QPoint screenPos() const

상세 설명

QGraphicsView 가 QEvent::ToolTip 유형의 QEvent 를 수신하면, QGraphicsSceneHelpEvent를 생성하여 이를 씬으로 전달합니다. setToolTip()을 사용하여 QGraphicsItem 에 툴팁을 설정할 수 있습니다. 기본적으로 QGraphicsScene 는 마우스 위치 아래에서 z값이 가장 높은(즉, 최상단에 있는) QGraphicsItem 의 툴팁을 표시합니다.

QGraphicsView "What's This" 및 help가 요청될 때 이벤트를 전달하지 않습니다. 이 기능이 필요한 경우, ()를 재구현하여 이벤트와 유형의 를 씬으로 전달할 수 있습니다. status tip QGraphicsView::viewportEvent QStatusTipEvent QEvent::WhatsThis QEvents

QEvent도 참조하십시오 .

멤버 함수 문서

[virtual noexcept] QGraphicsSceneHelpEvent::~QGraphicsSceneHelpEvent()

이벤트를 삭제합니다.

QPointF QGraphicsSceneHelpEvent::scenePos() const

도움말 이벤트가 전송된 시점의 마우스 커서 위치를 씬 좌표계로 반환합니다.

screenPos()도 참조하십시오 .

QPoint QGraphicsSceneHelpEvent::screenPos() const

도움말 이벤트가 전송된 시점의 마우스 커서 위치를 화면 좌표로 반환합니다.

scenePos()도 참조하십시오 .

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