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 PySide6.QtGui.QHelpEvent

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

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.

class PySide6.QtGui.QHelpEvent(type, pos, globalPos)#

PySide6.QtGui.QHelpEvent(arg__1)

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.

See also

pos() globalPos()

PySide6.QtGui.QHelpEvent.globalPos()#
Return type:

PySide6.QtCore.QPoint

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

PySide6.QtGui.QHelpEvent.globalX()#
Return type:

int

Same as globalPos() . x() .

PySide6.QtGui.QHelpEvent.globalY()#
Return type:

int

Same as globalPos() . y() .

PySide6.QtGui.QHelpEvent.pos()#
Return type:

PySide6.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()

PySide6.QtGui.QHelpEvent.x()#
Return type:

int

Same as pos() .x().

See also

y() pos() globalPos()

PySide6.QtGui.QHelpEvent.y()#
Return type:

int

Same as pos() .y().

See also

x() pos() globalPos()