com.trolltech.qt.gui
Class QGraphicsSceneHelpEvent

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by com.trolltech.qt.core.QEvent
              extended by com.trolltech.qt.gui.QGraphicsSceneEvent
                  extended by com.trolltech.qt.gui.QGraphicsSceneHelpEvent
All Implemented Interfaces:
QtJambiInterface

public class QGraphicsSceneHelpEvent
extends QGraphicsSceneEvent

The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.

When a QGraphicsView receives a QEvent of type QEvent::ToolTip, it creates a QGraphicsSceneHelpEvent, which is forwarded to the scene. You can set a tooltip on a QGraphicsItem with setToolTip(); by default QGraphicsScene displays the tooltip of the QGraphicsItem with the highest z-value (i.e, the top-most item) under the mouse position.

QGraphicsView does not forward events when "What's This" and status tip help is requested. If you need this, you can reimplement QGraphicsView::viewportEvent() and forward QStatusTipEvent events and QEvents of type QEvent::WhatsThis to the scene.

See Also:
QEvent

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<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Constructor Summary
QGraphicsSceneHelpEvent()
          Equivalent to QGraphicsSceneHelpEvent(None).
QGraphicsSceneHelpEvent(QEvent.Type type)
          This method is used internally by Qt Jambi.
 
Method Summary
static QGraphicsSceneHelpEvent fromNativePointer(QNativePointer nativePointer)
          This function returns the QGraphicsSceneHelpEvent instance pointed to by nativePointer
 QPointF scenePos()
          Returns the position of the mouse cursor in scene coordinates at the moment the the help event was sent.
 QPoint screenPos()
          Returns the position of the mouse cursor in screen coordinates at the moment the the help event was sent.
 void setScenePos(QPointF pos)
          This method is used internally by Qt Jambi.
 void setScreenPos(QPoint pos)
          This method is used internally by Qt Jambi.
 
Methods inherited from class com.trolltech.qt.gui.QGraphicsSceneEvent
widget
 
Methods inherited from class com.trolltech.qt.core.QEvent
accept, ignore, isAccepted, setAccepted, setT, spontaneous, t, type
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, 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, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QGraphicsSceneHelpEvent

public QGraphicsSceneHelpEvent()

Equivalent to QGraphicsSceneHelpEvent(None).


QGraphicsSceneHelpEvent

public QGraphicsSceneHelpEvent(QEvent.Type type)

This method is used internally by Qt Jambi. Do not use it in your applications.

Method Detail

scenePos

public final QPointF scenePos()

Returns the position of the mouse cursor in scene coordinates at the moment the the help event was sent.

See Also:
setScenePos, screenPos

screenPos

public final QPoint screenPos()

Returns the position of the mouse cursor in screen coordinates at the moment the the help event was sent.

See Also:
setScreenPos, scenePos

setScenePos

public final void setScenePos(QPointF pos)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
scenePos

setScreenPos

public final void setScreenPos(QPoint pos)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
screenPos

fromNativePointer

public static QGraphicsSceneHelpEvent fromNativePointer(QNativePointer nativePointer)
This function returns the QGraphicsSceneHelpEvent instance pointed to by nativePointer

Parameters:
nativePointer - the QNativePointer of which object should be returned.