이 페이지에서

QHelpEvent Class

QHelpEvent 클래스는 위젯의 특정 지점에 대한 유용한 정보를 요청하는 데 사용되는 이벤트를 제공합니다. 더 보기...

헤더: #include <QHelpEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
상속: QEvent

공개 함수

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

보호된 함수

QHelpEvent(QHelpEvent &&)
QHelpEvent &operator=(QHelpEvent &&)
QHelpEvent &operator=(const QHelpEvent &other)

상세 설명

이 이벤트는 응용 프로그램에서 인터셉트하여 사용자 지정 위젯에 대한 툴팁이나 "이 항목은 무엇입니까?" 도움말을 제공할 수 있습니다. 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

pos() 및 globalPos()도 참조하십시오 .

[protected delete] QHelpEvent::QHelpEvent(QHelpEvent &&)

QHelpEvent 의 인스턴스를 move-construct로 생성합니다. 이 함수는 삭제되었습니다.

const QPoint &QHelpEvent::globalPos() const

이벤트가 발생했을 때의 마우스 커서 위치를 전역 좌표계로 반환합니다.

pos(), globalX(), globalY()도 참조하십시오 .

int QHelpEvent::globalX() const

globalPos()와 동일합니다.x() 참조.

x(), globalY() 및 globalPos()도 참조하십시오 .

int QHelpEvent::globalY() const

globalPos()와 동일합니다.y()와 동일합니다.

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()와 동일합니다.

x(), pos() 및 globalPos()도 참조하십시오 .

[protected delete] QHelpEvent &QHelpEvent::operator=(QHelpEvent &&)

other 를 이 QHelpEvent 인스턴스에 할당합니다. 이 함수는 삭제됩니다.

[noexcept protected default] QHelpEvent &QHelpEvent::operator=(const QHelpEvent &other)

other 를 이 QHelpEvent 인스턴스에 복사-할당합니다.

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