![]() |
CopperSpice API
2.0.0
|
Indicates a request for information about a particular widget. More...
Public Methods | |
| QHelpEvent (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 |
Public Methods inherited from QEvent | |
| QEvent (const QEvent &other) | |
| QEvent (Type type) | |
| virtual | ~QEvent () |
| void | accept () |
| void | ignore () |
| bool | isAccepted () const |
| QEvent & | operator= (const QEvent &other) |
| void | setAccepted (bool accepted) |
| bool | spontaneous () const |
| Type | type () const |
Additional Inherited Members | |
Public Types inherited from QEvent | |
| enum | Type |
Static Public Methods inherited from QEvent | |
| static int | registerEventType (int hint=-1) |
The QHelpEvent class indicates a request for information about a particular widget. 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.
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.
|
inline |
|
inline |
Equivalent to calling globalPos().x().
|
inline |
Equivalent to calling globalPos().y().
|
inline |
Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.
|
inline |
Equivalent to calling pos().x().
|
inline |
Equivalent to calling pos().y().