QGraphicsSceneResizeEvent 类

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

头: #include <QGraphicsSceneResizeEvent>
qmake: QT += widgets
Since: Qt 4.4
继承: QGraphicsSceneEvent

公共函数

QGraphicsSceneResizeEvent ()
~QGraphicsSceneResizeEvent ()
QSizeF newSize () const
QSizeF oldSize () const

额外继承成员

详细描述

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

A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes.

它类似于 QResizeEvent ,但其尺寸 oldSize () 和 newSize (),使用 QSizeF 而不是 QSize .

另请参阅 QGraphicsWidget::setGeometry () 和 QGraphicsWidget::resize ().

成员函数文档编制

QGraphicsSceneResizeEvent:: QGraphicsSceneResizeEvent ()

构造 QGraphicsSceneResizeEvent .

QGraphicsSceneResizeEvent:: ~QGraphicsSceneResizeEvent ()

销毁 QGraphicsSceneResizeEvent .

QSizeF QGraphicsSceneResizeEvent:: newSize () const

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

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

QSizeF QGraphicsSceneResizeEvent:: oldSize () const

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

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