QHelpEvent露

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

Inheritance diagram of PySide2.QtGui.QHelpEvent

Synopsis露

Functions露

Detailed Description露

This event can be intercepted in applications to provide tooltips or 鈥淲hat鈥檚 This?鈥� help for custom widgets. The type() can be either ToolTip or WhatsThis .

See also

QToolTip QWhatsThis QStatusTipEvent QWhatsThisClickedEvent

class PySide2.QtGui.QHelpEvent(type, pos, globalPos)露
param type:

Type

param globalPos:

PySide2.QtCore.QPoint

param pos:

PySide2.QtCore.QPoint

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 ToolTip or WhatsThis .

See also

pos() globalPos()

PySide2.QtGui.QHelpEvent.globalPos()露
Return type:

PySide2.QtCore.QPoint

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

PySide2.QtGui.QHelpEvent.globalX()露
Return type:

int

Same as globalPos() . x() .

PySide2.QtGui.QHelpEvent.globalY()露
Return type:

int

Same as globalPos() . y() .

PySide2.QtGui.QHelpEvent.pos()露
Return type:

PySide2.QtCore.QPoint

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

See also

globalPos() x() y()

PySide2.QtGui.QHelpEvent.x()露
Return type:

int

Same as pos() ..

See also

y() pos() globalPos()

PySide2.QtGui.QHelpEvent.y()露
Return type:

int

Same as pos() ..

See also

x() pos() globalPos()