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

Synopsis¶
Functions¶
Detailed Description¶
This event can be intercepted in applications to provide tooltips or “What’s This?” help for custom widgets. The
type()can be eitherToolTiporWhatsThis.See also
QToolTipQWhatsThisQStatusTipEventQWhatsThisClickedEvent
- class PySide2.QtGui.QHelpEvent(type, pos, globalPos)¶
- param type:
- param globalPos:
- param pos:
Constructs a help event with the given
typecorresponding to the widget-relative position specified byposand the global position specified byglobalPos.typemust be eitherToolTiporWhatsThis.See also
- PySide2.QtGui.QHelpEvent.globalPos()¶
- Return type:
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:
Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.
See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.