QHelpEventclass 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()可以是ToolTiporWhatsThis.另请参阅
QToolTipQWhatsThisQStatusTipEventQWhatsThisClickedEvent
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 by
pos
and the global position specified by
globalPos
.
type
must be either
ToolTip
or
WhatsThis
.
另请参阅
PySide2.QtGui.QHelpEvent.
globalPos
(
)
¶
QPoint
Returns the mouse cursor position when the event was generated in global coordinates.
PySide2.QtGui.QHelpEvent.
globalX
(
)
¶
int
如同
globalPos()
.
x()
.
另请参阅
PySide2.QtGui.QHelpEvent.
globalY
(
)
¶
int
如同
globalPos()
.
y()
.
另请参阅
PySide2.QtGui.QHelpEvent.
pos
(
)
¶
QPoint
Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.
另请参阅