|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QEvent
com.trolltech.qt.gui.QHoverEvent
public class QHoverEvent
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)
|
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()
|
| 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 |
|---|
public QHoverEvent(QEvent.Type type,
QPoint pos,
QPoint oldPos)
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 |
|---|
public final QPoint oldPos()
oldPos() will return the same position as pos(). On QEvent::HoverEnter events, this position will always be QPoint(-1, -1).
pos().
public final QPoint pos()
On QEvent::HoverLeave events, this position will always be QPoint(-1, -1).
oldPos().
public static QHoverEvent fromNativePointer(QNativePointer nativePointer)
public java.lang.String toString()
toString in class QEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||