QGraphicsSceneResizeEvent#
The QGraphicsSceneResizeEvent
class provides events for widget resizing in the graphics view framework. More…
Synopsis#
Functions#
def
newSize
()def
oldSize
()def
setNewSize
(size)def
setOldSize
(size)
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
.
See also
- class PySide6.QtWidgets.QGraphicsSceneResizeEvent#
Constructs a QGraphicsSceneResizeEvent
.
- PySide6.QtWidgets.QGraphicsSceneResizeEvent.newSize()#
- Return type
Returns the new size (i.e., the current size).
- PySide6.QtWidgets.QGraphicsSceneResizeEvent.oldSize()#
- Return type
Returns the old size (i.e., the size immediately before the widget was resized).
- PySide6.QtWidgets.QGraphicsSceneResizeEvent.setNewSize(size)#
- Parameters
size –
PySide6.QtCore.QSizeF
- PySide6.QtWidgets.QGraphicsSceneResizeEvent.setOldSize(size)#
- Parameters
size –
PySide6.QtCore.QSizeF