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 « PySide6.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) -> None
QSizePolicy(self, horizontal: PySide6.QtWidgets.QSizePolicy.Policy, vertical: PySide6.QtWidgets.QSizePolicy.Policy, type: PySide6.QtWidgets.QSizePolicy.ControlType = PySide6.QtWidgets.QSizePolicy.ControlType.DefaultType) -> None

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__]

Liste des attributs statiques

Nom de l'attribut Valeur
ButtonBoxPySide6.QtWidgets.QSizePolicy.ControlType.ButtonBox
CheckBoxPySide6.QtWidgets.QSizePolicy.ControlType.CheckBox
ComboBoxPySide6.QtWidgets.QSizePolicy.ControlType.ComboBox
DefaultTypePySide6.QtWidgets.QSizePolicy.ControlType.DefaultType
ExpandFlagPySide6.QtWidgets.QSizePolicy.PolicyFlag.ExpandFlag
ExpandingPySide6.QtWidgets.QSizePolicy.Policy.Expanding
FixedPySide6.QtWidgets.QSizePolicy.Policy.Fixed
FramePySide6.QtWidgets.QSizePolicy.ControlType.Frame
GroupBoxPySide6.QtWidgets.QSizePolicy.ControlType.GroupBox
GrowFlagPySide6.QtWidgets.QSizePolicy.PolicyFlag.GrowFlag
IgnoredPySide6.QtWidgets.QSizePolicy.Policy.Ignored
IgnoreFlagPySide6.QtWidgets.QSizePolicy.PolicyFlag.IgnoreFlag
LabelPySide6.QtWidgets.QSizePolicy.ControlType.Label
LinePySide6.QtWidgets.QSizePolicy.ControlType.Line
LineEditPySide6.QtWidgets.QSizePolicy.ControlType.LineEdit
MaximumPySide6.QtWidgets.QSizePolicy.Policy.Maximum
MinimumPySide6.QtWidgets.QSizePolicy.Policy.Minimum
MinimumExpandingPySide6.QtWidgets.QSizePolicy.Policy.MinimumExpanding
PreferredPySide6.QtWidgets.QSizePolicy.Policy.Preferred
PushButtonPySide6.QtWidgets.QSizePolicy.ControlType.PushButton
RadioButtonPySide6.QtWidgets.QSizePolicy.ControlType.RadioButton
ShrinkFlagPySide6.QtWidgets.QSizePolicy.PolicyFlag.ShrinkFlag
SliderPySide6.QtWidgets.QSizePolicy.ControlType.Slider
SpinBoxPySide6.QtWidgets.QSizePolicy.ControlType.SpinBox
TabWidgetPySide6.QtWidgets.QSizePolicy.ControlType.TabWidget
ToolButtonPySide6.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: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.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: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.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__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
ControlType
controlType(self) -> PySide6.QtWidgets.QSizePolicy.ControlType controlType(self) -> PySide6.QtWidgets.QSizePolicy.ControlType [extrait de controlType.__doc__]
ControlTypes
expandingDirections(self) -> PySide6.QtCore.Qt.Orientations expandingDirections(self) -> PySide6.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) -> PySide6.QtWidgets.QSizePolicy.Policy horizontalPolicy(self) -> PySide6.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: PySide6.QtWidgets.QSizePolicy.ControlType) -> None setControlType(self, type: PySide6.QtWidgets.QSizePolicy.ControlType) -> None [extrait de setControlType.__doc__]
setHeightForWidth(self, b: bool) -> None setHeightForWidth(self, b: bool) -> None [extrait de setHeightForWidth.__doc__]
setHorizontalPolicy(self, d: PySide6.QtWidgets.QSizePolicy.Policy) -> None setHorizontalPolicy(self, d: PySide6.QtWidgets.QSizePolicy.Policy) -> None [extrait de setHorizontalPolicy.__doc__]
setHorizontalStretch(self, stretchFactor: int) -> None setHorizontalStretch(self, stretchFactor: int) -> None [extrait de setHorizontalStretch.__doc__]
setRetainSizeWhenHidden(self, retainSize: bool) -> None setRetainSizeWhenHidden(self, retainSize: bool) -> None [extrait de setRetainSizeWhenHidden.__doc__]
setVerticalPolicy(self, d: PySide6.QtWidgets.QSizePolicy.Policy) -> None setVerticalPolicy(self, d: PySide6.QtWidgets.QSizePolicy.Policy) -> None [extrait de setVerticalPolicy.__doc__]
setVerticalStretch(self, stretchFactor: int) -> None setVerticalStretch(self, stretchFactor: int) -> None [extrait de setVerticalStretch.__doc__]
setWidthForHeight(self, b: bool) -> None setWidthForHeight(self, b: bool) -> None [extrait de setWidthForHeight.__doc__]
transpose(self) -> None transpose(self) -> None [extrait de transpose.__doc__]
transposed(self) -> PySide6.QtWidgets.QSizePolicy transposed(self) -> PySide6.QtWidgets.QSizePolicy [extrait de transposed.__doc__]
verticalPolicy(self) -> PySide6.QtWidgets.QSizePolicy.Policy verticalPolicy(self) -> PySide6.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

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

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

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__