QGraphicsSceneResizeEvent¶

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

Inheritance diagram of PySide2.QtWidgets.QGraphicsSceneResizeEvent

Synopsis¶

Functions¶

Detailed Description¶

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 .

class PySide2.QtWidgets.QGraphicsSceneResizeEvent¶

Constructs a QGraphicsSceneResizeEvent .

PySide2.QtWidgets.QGraphicsSceneResizeEvent.newSize()¶
Return type:

PySide2.QtCore.QSizeF

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

See also

oldSize() resize()

PySide2.QtWidgets.QGraphicsSceneResizeEvent.oldSize()¶
Return type:

PySide2.QtCore.QSizeF

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

See also

newSize() resize()

PySide2.QtWidgets.QGraphicsSceneResizeEvent.setNewSize(size)¶
Parameters:

size – PySide2.QtCore.QSizeF

See also

newSize()

PySide2.QtWidgets.QGraphicsSceneResizeEvent.setOldSize(size)¶
Parameters:

size – PySide2.QtCore.QSizeF

See also

oldSize()