[QtGui module]

该QGraphicsSceneHelpEvent类提供事件时,工具提示请求。More…

继承QGraphicsSceneEvent

Methods

  • QPointF scenePos (self)
  • QPoint screenPos (self)

Detailed Description

该QGraphicsSceneHelpEvent类提供事件时,工具提示请求。

QGraphicsView收到QEvent类型QEvent.ToolTip,它会创建一个QGraphicsSceneHelpEvent ,被转发到了现场。您可以在设置的工具提示QGraphicsItemsetToolTip();默认QGraphicsScene显示的工具提示QGraphicsItem最高的z值下的鼠标位置(即最上面的项目) 。

QGraphicsView不转发事件时,“What’s This”status tip帮助请求。如果你需要,你可以重新实现QGraphicsView.viewportEvent( )和远期QStatusTipEvent事件和QEvents类型QEvent.WhatsThis到现场。


Method Documentation

  1. QPointF QGraphicsSceneHelpEvent.scenePos (self)

[

返回鼠标光标在现场的位置,此刻的帮助事件被送往坐标。

](docs_qpointf.html)

See also screenPos( ) 。

  1. QPoint QGraphicsSceneHelpEvent.screenPos (self)

[

返回鼠标光标在屏幕上的位置,此刻的帮助下事件被送往坐标。

](docs_qpoint.html)

See also scenePos( ) 。