[QtGui module]

该QHelpEvent类提供用于请求有关的一个小部件的特定点有用的信息的事件。More…

继承QEvent

Methods

  • __init__ (self, QEvent.Type type, QPoint pos, QPoint globalPos)
  • __init__ (self, QHelpEvent)
  • QPoint globalPos (self)
  • int globalX (self)
  • int globalY (self)
  • QPoint pos (self)
  • int x (self)
  • int y (self)

Detailed Description

该QHelpEvent类提供用于请求有关的一个小部件的特定点有用的信息的事件。

此事件可以在应用程序中截获到提供工具提示和“这是什么? ”帮助为自定义控件。该type( )可以是QEvent.ToolTip or QEvent.WhatsThis


Method Documentation

  1. QHelpEvent.__init__ (self, QEvent.Type type, QPoint pos, QPoint globalPos)

构造一个帮助事件与给定type对应于由指定窗口小部件的相对位置pos并通过指定的全球地位globalPos

type必须是QEvent.ToolTip or QEvent.WhatsThis

See also pos()和globalPos( ) 。

  1. QHelpEvent.__init__ (self, QHelpEvent)
  1. QPoint QHelpEvent.globalPos (self)

[

返回时,在全局坐标生成事件的鼠标光标位置。

](docs_qpoint.html)

See also pos( )globalX()和globalY( ) 。

  1. int QHelpEvent.globalX (self)

globalPos( ) 。x( ) 。

See also x( )globalY()和globalPos( ) 。

  1. int QHelpEvent.globalY (self)

globalPos( ) 。y( ) 。

See also y( )globalX()和globalPos( ) 。

  1. QPoint QHelpEvent.pos (self)

[

返回生成事件,当鼠标光标的位置,相对于到该事件被调度的部件。

](docs_qpoint.html)

See also globalPos( )x()和y( ) 。

  1. int QHelpEvent.x (self)

pos( ) ×( ) 。

See also y( )pos()和globalPos( ) 。

  1. int QHelpEvent.y (self)

pos( ) Y( ) 。

See also x( )pos()和globalPos( ) 。