QGraphicsSceneResizeEvent Class

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

Header: #include <QGraphicsSceneResizeEvent>
qmake: QT += widgets
Since: Qt 4.4
Inherits: QGraphicsSceneEvent

Public Functions

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

Additional Inherited Members

  • 1 property inherited from QEvent
  • 1 public variable inherited from QEvent
  • 1 static public member inherited from QEvent
  • 2 protected variables inherited from QEvent

Detailed Description

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.

See also QGraphicsWidget::setGeometry() and QGraphicsWidget::resize().

Member Function Documentation

QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent()

Constructs a QGraphicsSceneResizeEvent.

[virtual] QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent()

Destroys the QGraphicsSceneResizeEvent.

QSizeF QGraphicsSceneResizeEvent::newSize() const

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

See also oldSize() and QGraphicsWidget::resize().

QSizeF QGraphicsSceneResizeEvent::oldSize() const

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

See also newSize() and QGraphicsWidget::resize().

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support