|
|||||||||
| 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.QHelpEvent
public class QHelpEvent
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 .
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.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
| 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 | |
|---|---|
static QHelpEvent |
fromNativePointer(QNativePointer nativePointer)
|
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()
|
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 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 QHelpEvent(QEvent.Type type,
QPoint pos,
QPoint globalPos)
type must be either QEvent::ToolTip or QEvent::WhatsThis .
pos(), and globalPos().
| Method Detail |
|---|
public final QPoint globalPos()
pos(), globalX(), and globalY().
public final int globalX()
globalPos().x(). x(), globalY(), and globalPos().
public final int globalY()
globalPos().y(). y(), globalX(), and globalPos().
public final QPoint pos()
globalPos(), x(), and y().
public final int x()
pos().x(). y(), pos(), and globalPos().
public final int y()
pos().y(). x(), pos(), and globalPos().
public static QHelpEvent 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 | ||||||||