builtins.object Object QSizePolicy
class QSizePolicy(Object):
QSizePolicy(self) QSizePolicy(self, horizontal: PySide2.QtWidgets.QSizePolicy.Policy, vertical: PySide2.QtWidgets.QSizePolicy.Policy, type: PySide2.QtWidgets.QSizePolicy.ControlType = PySide2.QtWidgets.QSizePolicy.ControlType.DefaultType)
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__] |
Nom de l'attribut | Valeur |
---|---|
ButtonBox | PySide2.QtWidgets.QSizePolicy.ControlType.ButtonBox |
CheckBox | PySide2.QtWidgets.QSizePolicy.ControlType.CheckBox |
ComboBox | PySide2.QtWidgets.QSizePolicy.ControlType.ComboBox |
DefaultType | PySide2.QtWidgets.QSizePolicy.ControlType.DefaultType |
ExpandFlag | PySide2.QtWidgets.QSizePolicy.PolicyFlag.ExpandFlag |
Expanding | PySide2.QtWidgets.QSizePolicy.Policy.Expanding |
Fixed | PySide2.QtWidgets.QSizePolicy.Policy.Fixed |
Frame | PySide2.QtWidgets.QSizePolicy.ControlType.Frame |
GroupBox | PySide2.QtWidgets.QSizePolicy.ControlType.GroupBox |
GrowFlag | PySide2.QtWidgets.QSizePolicy.PolicyFlag.GrowFlag |
Ignored | PySide2.QtWidgets.QSizePolicy.Policy.Ignored |
IgnoreFlag | PySide2.QtWidgets.QSizePolicy.PolicyFlag.IgnoreFlag |
Label | PySide2.QtWidgets.QSizePolicy.ControlType.Label |
Line | PySide2.QtWidgets.QSizePolicy.ControlType.Line |
LineEdit | PySide2.QtWidgets.QSizePolicy.ControlType.LineEdit |
Maximum | PySide2.QtWidgets.QSizePolicy.Policy.Maximum |
Minimum | PySide2.QtWidgets.QSizePolicy.Policy.Minimum |
MinimumExpanding | PySide2.QtWidgets.QSizePolicy.Policy.MinimumExpanding |
Preferred | PySide2.QtWidgets.QSizePolicy.Policy.Preferred |
PushButton | PySide2.QtWidgets.QSizePolicy.ControlType.PushButton |
RadioButton | PySide2.QtWidgets.QSizePolicy.ControlType.RadioButton |
ShrinkFlag | PySide2.QtWidgets.QSizePolicy.PolicyFlag.ShrinkFlag |
Slider | PySide2.QtWidgets.QSizePolicy.ControlType.Slider |
SpinBox | PySide2.QtWidgets.QSizePolicy.ControlType.SpinBox |
TabWidget | PySide2.QtWidgets.QSizePolicy.ControlType.TabWidget |
ToolButton | PySide2.QtWidgets.QSizePolicy.ControlType.ToolButton |
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__] |
Signature de la méthode | Description |
---|---|
__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__] |
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 :