• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QStatusTipEvent

    下一话题

    QDragLeaveEvent

    QHelpEvent

    概要

    函数

    详细描述

    PySide.QtGui.QHelpEvent class 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 PySide.QtCore.QEvent.type() 可以是 QEvent.ToolTip or QEvent.WhatsThis .

    另请参阅

    PySide.QtGui.QToolTip PySide.QtGui.QWhatsThis PySide.QtGui.QStatusTipEvent PySide.QtGui.QWhatsThisClickedEvent

    class PySide.QtGui. QHelpEvent ( type , pos , globalPos )
    参数:

    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 .

    PySide.QtGui.QHelpEvent. globalPos ( )
    返回类型: PySide.QtCore.QPoint

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

    PySide.QtGui.QHelpEvent. globalX ( )
    返回类型: PySide.QtCore.int

    如同 PySide.QtGui.QHelpEvent.globalPos() . PySide.QtGui.QHelpEvent.x() .

    PySide.QtGui.QHelpEvent. globalY ( )
    返回类型: PySide.QtCore.int

    如同 PySide.QtGui.QHelpEvent.globalPos() . PySide.QtGui.QHelpEvent.y() .

    PySide.QtGui.QHelpEvent. pos ( )
    返回类型: PySide.QtCore.QPoint

    Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.

    PySide.QtGui.QHelpEvent. x ( )
    返回类型: PySide.QtCore.int

    如同 PySide.QtGui.QHelpEvent.pos() . PySide.QtGui.QHelpEvent.x() .

    PySide.QtGui.QHelpEvent. y ( )
    返回类型: PySide.QtCore.int

    如同 PySide.QtGui.QHelpEvent.pos() . PySide.QtGui.QHelpEvent.y() .