QHelpEvent Class
QHelpEvent 클래스는 위젯의 특정 지점에 대한 유용한 정보를 요청하는 데 사용되는 이벤트를 제공합니다. 더 보기...
헤더: | #include <QHelpEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
상속합니다: | QEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QHelpEvent는 이벤트 클래스와 도움말 시스템의 일부입니다.
공용 함수
QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos) | |
const QPoint & | globalPos() const |
int | globalX() const |
int | globalY() const |
const QPoint & | pos() const |
int | x() const |
int | y() const |
자세한 설명
이 이벤트는 애플리케이션에서 가로채서 사용자 정의 위젯에 대한 도구 설명이나 "이게 뭐죠?" 도움말을 제공할 수 있습니다. type ()는 QEvent::ToolTip 또는 QEvent::WhatsThis 일 수 있습니다.
QToolTip, QWhatsThis, QStatusTipEvent, QWhatsThisClickedEvent도 참조 하세요.
멤버 함수 문서
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
pos 에 지정된 위젯 상대 위치와 globalPos 에 지정된 전역 위치에 해당하는 type 으로 도움말 이벤트를 생성합니다.
type 는 QEvent::ToolTip 또는 QEvent::WhatsThis 이어야 합니다.
const QPoint &QHelpEvent::globalPos() const
이벤트가 전역 좌표로 생성되었을 때 마우스 커서 위치를 반환합니다.
pos(), globalX() 및 globalY()도 참조하세요 .
int QHelpEvent::globalX() const
x(), globalY() 및 globalPos()도 참조하세요 .
int QHelpEvent::globalY() const
y(), globalX() 및 globalPos()도 참조하세요 .
const QPoint &QHelpEvent::pos() const
이벤트가 생성될 때의 마우스 커서 위치를 이벤트가 디스패치된 위젯을 기준으로 반환합니다.
globalPos(), x(), y()도 참조하세요 .
int QHelpEvent::x() const
pos().x()와 동일합니다.
y(), pos() 및 globalPos()도 참조하세요 .
int QHelpEvent::y() const
pos().y()와 동일합니다.
© 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.