QGraphicsSceneHelpEvent Class

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

Header: #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

상세 설명

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

QGraphicsView"What's This"status tip 도움말이 요청될 때 이벤트를 전달하지 않습니다. 이 기능이 필요한 경우 QGraphicsView::viewportEvent()를 다시 구현하고 QStatusTipEvent 이벤트와 QEvents 유형 QEvent::WhatsThis 을 장면에 전달할 수 있습니다.

QEvent참조하세요 .

멤버 함수 문서

[virtual noexcept] QGraphicsSceneHelpEvent::~QGraphicsSceneHelpEvent()

이벤트를 삭제합니다.

QPointF QGraphicsSceneHelpEvent::scenePos() const

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

screenPos()도 참조하세요 .

QPoint QGraphicsSceneHelpEvent::screenPos() const

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

scenePos()도 참조하세요 .

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