The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
constexpr void setVerticalStretch(int stretchFactor)
Sets the vertical stretch factor of the size policy to the given stretchFactor.
constexpr void setHorizontalStretch(int stretchFactor)
Sets the horizontal stretch factor of the size policy to the given stretchFactor.