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 .
Returns the new size (i.e., the current size).
另请参阅 oldSize () 和 QGraphicsWidget::resize ().
Returns the old size (i.e., the size immediately before the widget was resized).
另请参阅 newSize () 和 QGraphicsWidget::resize ().