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 ()
virtual ~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 ().