内容表

上一话题

QGuiApplication

下一话题

QHideEvent

QHelpEvent

QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget. 更多

Inheritance diagram of PySide2.QtGui.QHelpEvent

概要

函数

详细描述

This event can be intercepted in applications to provide tooltips or “What’s This?” help for custom widgets. The type() 可以是 ToolTip or WhatsThis .

另请参阅

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 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.

PySide2.QtGui.QHelpEvent. x ( )
返回类型

int

如同 pos() ..

PySide2.QtGui.QHelpEvent. y ( )
返回类型

int

如同 pos() ..