QHelpEvent Class▲
-
Header: QHelpEvent
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
-
qmake: QT += gui
-
Inherits: QEvent
-
Group: QHelpEvent is part of events, helpsystem
Detailed Description▲
This event can be intercepted in applications to provide tooltips or "What's This?" help for custom widgets. The type() can be either QEvent::ToolTip or QEvent::WhatsThis.
See Also▲
See also QToolTip, QWhatsThis, QStatusTipEvent, QWhatsThisClickedEvent
Member Function Documentation▲
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)▲
Constructs a help event with the given type corresponding to the widget-relative position specified by pos and the global position specified by globalPos.
type must be either QEvent::ToolTip or QEvent::WhatsThis.
See Also▲
const QPoint &QHelpEvent::globalPos() const▲
Returns the mouse cursor position when the event was generated in global coordinates.
See Also▲
int QHelpEvent::globalX() const▲
int QHelpEvent::globalY() const▲
const QPoint &QHelpEvent::pos() const▲
Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.