#include <qevent.h>
Inheritance diagram for QHelpEvent:


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.
Definition at line 544 of file qevent.h.
Public Member Functions | |
| QHelpEvent (Type type, const QPoint &pos, const QPoint &globalPos) | |
| ~QHelpEvent () | |
| int | x () const |
| int | y () const |
| int | globalX () const |
| int | globalY () const |
| const QPoint & | pos () const |
| const QPoint & | globalPos () const |
Private Attributes | |
| QPoint | p |
| QPoint | gp |
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.
Definition at line 2541 of file qevent.cpp.
| QHelpEvent::~QHelpEvent | ( | ) |
| int QHelpEvent::x | ( | ) | const [inline] |
| int QHelpEvent::y | ( | ) | const [inline] |
| int QHelpEvent::globalX | ( | ) | const [inline] |
Same as globalPos().x().
Definition at line 552 of file qevent.h.
| int QHelpEvent::globalY | ( | ) | const [inline] |
Same as globalPos().y().
Definition at line 553 of file qevent.h.
| const QPoint & QHelpEvent::pos | ( | ) | const [inline] |
Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.
Definition at line 555 of file qevent.h.
References p.
Referenced by Q3IconView::eventFilter(), Q3ListView::eventFilter(), QAbstractItemView::viewportEvent(), and QHeaderView::viewportEvent().
00555 { return p; }
| const QPoint & QHelpEvent::globalPos | ( | ) | const [inline] |
Returns the mouse cursor position when the event was generated in global coordinates.
Definition at line 556 of file qevent.h.
Referenced by Q3IconView::eventFilter(), Q3ListView::eventFilter(), QAbstractItemView::viewportEvent(), and QHeaderView::viewportEvent().
00556 { return gp; }
QPoint QHelpEvent::p [private] |
QPoint QHelpEvent::gp [private] |
1.5.1