QGraphicsSceneResizeEvent#

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

Inheritance diagram of PySide6.QtWidgets.QGraphicsSceneResizeEvent

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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