Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QHelpEvent

    java.lang.Object
      com.trolltech.qt.internal.QSignalEmitterInternal
          com.trolltech.qt.QSignalEmitter
              com.trolltech.qt.QtJambiObject
                  com.trolltech.qt.core.QEvent
                      com.trolltech.qt.gui.QHelpEvent

All Implemented Interfaces:
  QtJambiInterface

    public class QHelpEvent

extends QEvent

The `QHelpEvent` class provides an event that is used to request helpful information about a particular point in a 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` .

See also:
  `QToolTip`, `QWhatsThis`, `QStatusTipEvent`, and `QWhatsThisClickedEvent`.

Nested Class Summary

Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent
`QEvent.Type`

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal`

Field Summary

Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`currentSender`

Constructor Summary
`QHelpEvent(QEvent.Type type, QPoint pos, 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`.

Method Summary
`QPoint` | `globalPos()` Returns the mouse cursor position when the event was generated in global coordinates.
`int` | `globalX()` Same as `globalPos()`.`x()`.
`int` | `globalY()` Same as `globalPos()`.`y()`.
`QPoint` | `pos()` Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.
`java.lang.String` | `toString()` Returns a string representation of the `this QHelpEvent`.
`int` | `x()` Same as `pos()`.`x()`.
`int` | `y()` Same as `pos()`.`y()`.

Methods inherited from class com.trolltech.qt.core.QEvent
`accept, ignore, isAccepted, registerEventType, registerEventType, setAccepted, setT, spontaneous, t, type`

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`__qt_signalInitialization`

Methods inherited from class java.lang.Object
`clone, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Constructor Detail

### QHelpEvent

    public QHelpEvent(QEvent.Type type,
                      QPoint pos,
                      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:
  `pos()`, and `globalPos()`.

Method Detail

### globalPos

    public final QPoint globalPos()

  Returns the mouse cursor position when the event was generated in global coordinates.

See also:
  `pos()`, `globalX()`, and `globalY()`.

### globalX

    public final int globalX()

  Same as `globalPos()`.`x()`.

See also:
  `x()`, `globalY()`, and `globalPos()`.

### globalY

    public final int globalY()

  Same as `globalPos()`.`y()`.

See also:
  `y()`, `globalX()`, and `globalPos()`.

### pos

    public final QPoint pos()

  Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.

See also:
  `globalPos()`, `x()`, and `y()`.

### x

    public final int x()

  Same as `pos()`.`x()`.

See also:
  `y()`, `pos()`, and `globalPos()`.

### y

    public final int y()

  Same as `pos()`.`y()`.

See also:
  `x()`, `pos()`, and `globalPos()`.

### toString

    public java.lang.String toString()

  Returns a string representation of the `this QHelpEvent`.

  Overrides:
    `toString` in class `QEvent`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD