- class QGraphicsSceneResizeEvent#
The
QGraphicsSceneResizeEvent
class provides events for widget resizing in the graphics view framework. More…Synopsis#
Methods#
def
__init__()
def
newSize()
def
oldSize()
def
setNewSize()
def
setOldSize()
注意
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
详细描述#
当
QGraphicsWidget
的几何形状发生变化时,它会立即向自身发送一个QGraphicsSceneResizeEvent
。它与QResizeEvent类似,但其尺寸,即
oldSize()
和newSize()
,使用QSizeF而不是QSize。- __init__()#
构造一个
QGraphicsSceneResizeEvent
对象。返回新的大小(即当前大小)。
返回旧的大小(即在组件调整大小之前的尺寸)。