QGraphicsSceneResizeEvent 類提供用於在圖形視圖框架中重置 Widget 尺寸的事件。 更多...
| 頭: | #include <QGraphicsSceneResizeEvent> |
| qmake: | QT += widgets |
| Since: | Qt 4.4 |
| 繼承: | QGraphicsSceneEvent |
該類在 Qt 4.4 引入。
| QGraphicsSceneResizeEvent () | |
| virtual | ~QGraphicsSceneResizeEvent () |
| QSizeF | newSize () const |
| QSizeF | oldSize () const |
A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes.
它類似於 QResizeEvent ,但其尺寸 oldSize () 和 newSize (),使用 QSizeF 而不是 QSize .
另請參閱 QGraphicsWidget::setGeometry () 和 QGraphicsWidget::resize ().
構造 QGraphicsSceneResizeEvent。
[虛擬]
QGraphicsSceneResizeEvent::
~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 ().