QGraphicsSceneResizeEvent#

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

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 PySide6.QtWidgets.QGraphicsSceneResizeEvent#

Constructs a QGraphicsSceneResizeEvent .

PySide6.QtWidgets.QGraphicsSceneResizeEvent.newSize()#
Return type

PySide6.QtCore.QSizeF

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

See also

oldSize() resize()

PySide6.QtWidgets.QGraphicsSceneResizeEvent.oldSize()#
Return type

PySide6.QtCore.QSizeF

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

See also

newSize() resize()

PySide6.QtWidgets.QGraphicsSceneResizeEvent.setNewSize(size)#
Parameters

sizePySide6.QtCore.QSizeF

PySide6.QtWidgets.QGraphicsSceneResizeEvent.setOldSize(size)#
Parameters

sizePySide6.QtCore.QSizeF