QGraphicsSceneResizeEvent Class Reference

[ QtGui module]

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. 更多...

继承 QGraphicsSceneEvent .

方法


详细描述

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.

A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry 改变。

It's similar to QResizeEvent , but its sizes, oldSize () 和 newSize (), use QSizeF 而不是 QSize .


方法文档编制

QGraphicsSceneResizeEvent.__init__ ( self )

构造 QGraphicsSceneResizeEvent .

QSizeF QGraphicsSceneResizeEvent.newSize ( self )

Returns the new size (i.e., the current size).

另请参阅 oldSize () 和 QGraphicsWidget.resize ().

QSizeF QGraphicsSceneResizeEvent.oldSize ( self )

Returns the old size (i.e., the size immediately before the widget was resized).

另请参阅 newSize () 和 QGraphicsWidget.resize ().