QGraphicsSceneResizeEvent Class

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

头文件: #include <QGraphicsSceneResizeEvent>
qmake: QT += widgets
开始支持版本: Qt 4.4
基类: QGraphicsSceneEvent

公有函数

其他继承的成员

  • 1 个属性继承自 QEvent
  • 1 个静态公有成员继承自 QEvent
  • 2 个受保护的变量继承自 QEvent

详细描述

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

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

It's similar to QResizeEvent, but its sizes, oldSize() and newSize(), use QSizeF instead of QSize.

参见 QGraphicsWidget::setGeometry() and QGraphicsWidget::resize().

成员函数

QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()

Constructs a QGraphicsSceneResizeEvent.

QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()

Destroys the QGraphicsSceneResizeEvent.

QSizeF QGraphicsSceneResizeEvent::newSize() const

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

参见 oldSize() and QGraphicsWidget::resize().

QSizeF QGraphicsSceneResizeEvent::oldSize() const

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

参见 newSize() and QGraphicsWidget::resize().