Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtWidgets »

Classe « QSizePolicy »

Informations générales

Héritage

builtins.object
    Object
        QSizePolicy

Définition

class QSizePolicy(Object):

Description [extrait de QSizePolicy.__doc__]

QSizePolicy(self)
QSizePolicy(self, horizontal: PySide2.QtWidgets.QSizePolicy.Policy, vertical: PySide2.QtWidgets.QSizePolicy.Policy, type: PySide2.QtWidgets.QSizePolicy.ControlType = PySide2.QtWidgets.QSizePolicy.ControlType.DefaultType)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
ButtonBoxPySide2.QtWidgets.QSizePolicy.ControlType.ButtonBox
CheckBoxPySide2.QtWidgets.QSizePolicy.ControlType.CheckBox
ComboBoxPySide2.QtWidgets.QSizePolicy.ControlType.ComboBox
DefaultTypePySide2.QtWidgets.QSizePolicy.ControlType.DefaultType
ExpandFlagPySide2.QtWidgets.QSizePolicy.PolicyFlag.ExpandFlag
ExpandingPySide2.QtWidgets.QSizePolicy.Policy.Expanding
FixedPySide2.QtWidgets.QSizePolicy.Policy.Fixed
FramePySide2.QtWidgets.QSizePolicy.ControlType.Frame
GroupBoxPySide2.QtWidgets.QSizePolicy.ControlType.GroupBox
GrowFlagPySide2.QtWidgets.QSizePolicy.PolicyFlag.GrowFlag
IgnoredPySide2.QtWidgets.QSizePolicy.Policy.Ignored
IgnoreFlagPySide2.QtWidgets.QSizePolicy.PolicyFlag.IgnoreFlag
LabelPySide2.QtWidgets.QSizePolicy.ControlType.Label
LinePySide2.QtWidgets.QSizePolicy.ControlType.Line
LineEditPySide2.QtWidgets.QSizePolicy.ControlType.LineEdit
MaximumPySide2.QtWidgets.QSizePolicy.Policy.Maximum
MinimumPySide2.QtWidgets.QSizePolicy.Policy.Minimum
MinimumExpandingPySide2.QtWidgets.QSizePolicy.Policy.MinimumExpanding
PreferredPySide2.QtWidgets.QSizePolicy.Policy.Preferred
PushButtonPySide2.QtWidgets.QSizePolicy.ControlType.PushButton
RadioButtonPySide2.QtWidgets.QSizePolicy.ControlType.RadioButton
ShrinkFlagPySide2.QtWidgets.QSizePolicy.PolicyFlag.ShrinkFlag
SliderPySide2.QtWidgets.QSizePolicy.ControlType.Slider
SpinBoxPySide2.QtWidgets.QSizePolicy.ControlType.SpinBox
TabWidgetPySide2.QtWidgets.QSizePolicy.ControlType.TabWidget
ToolButtonPySide2.QtWidgets.QSizePolicy.ControlType.ToolButton

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
ControlType
controlType(self) -> PySide2.QtWidgets.QSizePolicy.ControlType controlType(self) -> PySide2.QtWidgets.QSizePolicy.ControlType [extrait de controlType.__doc__]
ControlTypes
expandingDirections(self) -> PySide2.QtCore.Qt.Orientations expandingDirections(self) -> PySide2.QtCore.Qt.Orientations [extrait de expandingDirections.__doc__]
hasHeightForWidth(self) -> bool hasHeightForWidth(self) -> bool [extrait de hasHeightForWidth.__doc__]
hasWidthForHeight(self) -> bool hasWidthForHeight(self) -> bool [extrait de hasWidthForHeight.__doc__]
horizontalPolicy(self) -> PySide2.QtWidgets.QSizePolicy.Policy horizontalPolicy(self) -> PySide2.QtWidgets.QSizePolicy.Policy [extrait de horizontalPolicy.__doc__]
horizontalStretch(self) -> int horizontalStretch(self) -> int [extrait de horizontalStretch.__doc__]
Policy
PolicyFlag
retainSizeWhenHidden(self) -> bool retainSizeWhenHidden(self) -> bool [extrait de retainSizeWhenHidden.__doc__]
setControlType(self, type: PySide2.QtWidgets.QSizePolicy.ControlType) setControlType(self, type: PySide2.QtWidgets.QSizePolicy.ControlType) [extrait de setControlType.__doc__]
setHeightForWidth(self, b: bool) setHeightForWidth(self, b: bool) [extrait de setHeightForWidth.__doc__]
setHorizontalPolicy(self, d: PySide2.QtWidgets.QSizePolicy.Policy) setHorizontalPolicy(self, d: PySide2.QtWidgets.QSizePolicy.Policy) [extrait de setHorizontalPolicy.__doc__]
setHorizontalStretch(self, stretchFactor: int) setHorizontalStretch(self, stretchFactor: int) [extrait de setHorizontalStretch.__doc__]
setRetainSizeWhenHidden(self, retainSize: bool) setRetainSizeWhenHidden(self, retainSize: bool) [extrait de setRetainSizeWhenHidden.__doc__]
setVerticalPolicy(self, d: PySide2.QtWidgets.QSizePolicy.Policy) setVerticalPolicy(self, d: PySide2.QtWidgets.QSizePolicy.Policy) [extrait de setVerticalPolicy.__doc__]
setVerticalStretch(self, stretchFactor: int) setVerticalStretch(self, stretchFactor: int) [extrait de setVerticalStretch.__doc__]
setWidthForHeight(self, b: bool) setWidthForHeight(self, b: bool) [extrait de setWidthForHeight.__doc__]
transpose(self) transpose(self) [extrait de transpose.__doc__]
transposed(self) -> PySide2.QtWidgets.QSizePolicy transposed(self) -> PySide2.QtWidgets.QSizePolicy [extrait de transposed.__doc__]
verticalPolicy(self) -> PySide2.QtWidgets.QSizePolicy.Policy verticalPolicy(self) -> PySide2.QtWidgets.QSizePolicy.Policy [extrait de verticalPolicy.__doc__]
verticalStretch(self) -> int verticalStretch(self) -> int [extrait de verticalStretch.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__