QHelpEvent Class Reference

[ QtGui module]

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget. 更多...

继承 QEvent .

方法


详细描述

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 .


方法文档编制

QHelpEvent.__init__ ( self , QEvent.Type   type , QPoint   pos , QPoint   globalPos )

Constructs a help event with the given type corresponding to the widget-relative position specified by pos 和 global position specified by globalPos .

type must be either QEvent.ToolTip or QEvent.WhatsThis .

另请参阅 pos () 和 globalPos ().

QHelpEvent.__init__ ( self , QHelpEvent )

QPoint QHelpEvent.globalPos ( self )

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

另请参阅 pos (), globalX (),和 globalY ().

int QHelpEvent.globalX ( self )

如同 globalPos (). x ().

另请参阅 x (), globalY (),和 globalPos ().

int QHelpEvent.globalY ( self )

如同 globalPos (). y ().

另请参阅 y (), globalX (),和 globalPos ().

QPoint QHelpEvent.pos ( self )

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

另请参阅 globalPos (), x (),和 y ().

int QHelpEvent.x ( self )

如同 pos ().x().

另请参阅 y (), pos (),和 globalPos ().

int QHelpEvent.y ( self )

如同 pos ().y().

另请参阅 x (), pos (),和 globalPos ().