Table Of Contents

Previous topic

QStatusTipEvent

Next topic

QDragLeaveEvent

QHelpEvent

Synopsis

Functions

Detailed Description

The PySide.QtGui.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 PySide.QtCore.QEvent.type() can be either QEvent.ToolTip or QEvent.WhatsThis .

See also

PySide.QtGui.QToolTip PySide.QtGui.QWhatsThis PySide.QtGui.QStatusTipEvent PySide.QtGui.QWhatsThisClickedEvent

class PySide.QtGui.QHelpEvent(type, pos, globalPos)
Parameters:

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 .

PySide.QtGui.QHelpEvent.globalPos()
Return type:PySide.QtCore.QPoint

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

PySide.QtGui.QHelpEvent.globalX()
Return type:PySide.QtCore.int

Same as PySide.QtGui.QHelpEvent.globalPos() . PySide.QtGui.QHelpEvent.x() .

PySide.QtGui.QHelpEvent.globalY()
Return type:PySide.QtCore.int

Same as PySide.QtGui.QHelpEvent.globalPos() . PySide.QtGui.QHelpEvent.y() .

PySide.QtGui.QHelpEvent.pos()
Return type:PySide.QtCore.QPoint

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

PySide.QtGui.QHelpEvent.x()
Return type:PySide.QtCore.int

Same as PySide.QtGui.QHelpEvent.pos() . PySide.QtGui.QHelpEvent.x() .

PySide.QtGui.QHelpEvent.y()
Return type:PySide.QtCore.int

Same as PySide.QtGui.QHelpEvent.pos() . PySide.QtGui.QHelpEvent.y() .