PySide6.QtWidgets.QGraphicsSceneResizeEvent¶
- class QGraphicsSceneResizeEvent¶
The
QGraphicsSceneResizeEventclass provides events for widget resizing in the graphics view framework.Details
A
QGraphicsWidgetsends itself aQGraphicsSceneResizeEventimmediately when its geometry changes.It’s similar to QResizeEvent, but its sizes,
oldSize()andnewSize(), use QSizeF instead of QSize.See also
Synopsis¶
Methods¶
def
__init__()def
newSize()def
oldSize()def
setNewSize()def
setOldSize()
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
- __init__()¶
Constructs a
QGraphicsSceneResizeEvent.Returns the new size (i.e., the current size).
Returns the old size (i.e., the size immediately before the widget was resized).