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 QHoverEvent

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.core.QEvent
                  com.trolltech.qt.gui.QHoverEvent

All Implemented Interfaces:
  QtJambiInterface

    public class QHoverEvent

extends QEvent

The `QHoverEvent` class contains parameters that describe a mouse event. Mouse events occur when a mouse cursor is moved into, out of, or within a widget, and if the widget has the `Qt::WA_Hover` attribute.

The function `pos()` gives the current cursor position, while `oldPos()` gives the old mouse position.

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.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Constructor Summary
`QHoverEvent(QEvent.Type type, QPoint pos, QPoint oldPos)` Constructs a hover event object.

Method Summary
`static QHoverEvent` | `fromNativePointer(QNativePointer nativePointer)` This method returns the QHoverEvent instance pointed to by `nativePointer`.
`QPoint` | `oldPos()` Returns the previous position of the mouse cursor, relative to the widget that received the event.
`QPoint` | `pos()` Returns the position of the mouse cursor, relative to the widget that received the event.
`java.lang.String` | `toString()` Returns a string representation of the `this QHoverEvent`.

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

### QHoverEvent

    public QHoverEvent(QEvent.Type type,
                       QPoint pos,
                       QPoint oldPos)

  Constructs a hover event object.

  The `type` parameter must be `QEvent::HoverEnter` , `QEvent::HoverLeave` , or `QEvent::HoverMove` .

  The `pos` is the current mouse cursor's position relative to the receiving widget, while `oldPos` is the previous mouse cursor's position relative to the receiving widget.

Method Detail

### oldPos

    public final QPoint oldPos()

  Returns the previous position of the mouse cursor, relative to the widget that received the event. If there is no previous position, `oldPos()` will return the same position as `pos()`.

  On `QEvent::HoverEnter` events, this position will always be `QPoint`(-1, -1).

See also:
  `pos()`.

### pos

    public final QPoint pos()

  Returns the position of the mouse cursor, relative to the widget that received the event.

  On `QEvent::HoverLeave` events, this position will always be `QPoint`(-1, -1).

See also:
  `oldPos()`.

### fromNativePointer

    public static QHoverEvent fromNativePointer(QNativePointer nativePointer)

  This method returns the QHoverEvent instance pointed to by `nativePointer`.

### toString

    public java.lang.String toString()

  Returns a string representation of the `this QHoverEvent`.

  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