QSizePolicy

class PyQt5.QtWidgets.QSizePolicy

C++ documentation