QGraphicsSceneResizeEventclass provides events for widget resizing in the graphics view framework. 更多 …
def
newSize
()
def
oldSize
()
def
setNewSize
(size)
def
setOldSize
(size)
A QGraphicsWidget sends itself a
QGraphicsSceneResizeEventimmediately when its geometry changes.It’s similar to
QResizeEvent, but its sizes,oldSize()andnewSize(),使用QSizeF而不是QSize.另请参阅
QGraphicsSceneResizeEvent
¶
PySide2.QtWidgets.QGraphicsSceneResizeEvent.
newSize
(
)
¶
QSizeF
Returns the new size (i.e., the current size).
PySide2.QtWidgets.QGraphicsSceneResizeEvent.
oldSize
(
)
¶
QSizeF
Returns the old size (i.e., the size immediately before the widget was resized).