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

Detailed Description¶
This event can be intercepted in applications to provide tooltips or “What’s This?” help for custom widgets. The
type()
can be eitherToolTip
orWhatsThis
.See also
QToolTip
QWhatsThis
QStatusTipEvent
QWhatsThisClickedEvent
-
class
QHelpEvent
(type, pos, globalPos)¶ - param type
Type
- param globalPos
QPoint
- param pos
QPoint
Constructs a help event with the given
type
corresponding to the widget-relative position specified bypos
and the global position specified byglobalPos
.type
must be eitherToolTip
orWhatsThis
.See also
-
PySide2.QtGui.QHelpEvent.
globalPos
()¶ - Return type
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()
.See also
-
PySide2.QtGui.QHelpEvent.
globalY
()¶ - Return type
int
Same as
globalPos()
.y()
.See also
-
PySide2.QtGui.QHelpEvent.
pos
()¶ - Return type
QPoint
Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.
See also