QResizeEvent

The QResizeEvent class contains event parameters for resize events. More

Inheritance diagram of PySide2.QtGui.QResizeEvent

Synopsis

Functions

Detailed Description

Resize events are sent to widgets that have been resized.

The event handler resizeEvent() receives resize events.

See also

resize() setGeometry()

class PySide2.QtGui.QResizeEvent(size, oldSize)
param size

PySide2.QtCore.QSize

param oldSize

PySide2.QtCore.QSize

Constructs a resize event with the new and old widget sizes, size and oldSize respectively.

PySide2.QtGui.QResizeEvent.oldSize()
Return type

PySide2.QtCore.QSize

Returns the old size of the widget.

PySide2.QtGui.QResizeEvent.size()
Return type

PySide2.QtCore.QSize

Returns the new size of the widget. This is the same as size() .