Notation used in Ruby API documentation
Module: QtWidgets
Description: Binding of QSizePolicy
Sub-classes: ControlType, QFlags_ControlType, Policy, QFlags_Policy
new QSizePolicy | new | Constructor QSizePolicy::QSizePolicy() | |
new QSizePolicy | new | (const QSizePolicy_Policy horizontal, const QSizePolicy_Policy vertical, const QSizePolicy_ControlType type = QSizePolicy::DefaultType) | Constructor QSizePolicy::QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type) |
[const] | bool | != | (const QSizePolicy s) | Method bool QSizePolicy::operator!=(const QSizePolicy &s) |
[const] | bool | == | (const QSizePolicy s) | Method bool QSizePolicy::operator==(const QSizePolicy &s) |
[const] | QSizePolicy ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
void | assign | (const QSizePolicy other) | Assigns another object to self | |
[const] | QSizePolicy_ControlType | controlType | Method QSizePolicy::ControlType QSizePolicy::controlType() | |
void | controlType= | (const QSizePolicy_ControlType type) | Method void QSizePolicy::setControlType(QSizePolicy::ControlType type) | |
[const] | new QSizePolicy ptr | dup | Creates a copy of self | |
[const] | Qt_QFlags_Orientation | expandingDirections | Method QFlags<Qt::Orientation> QSizePolicy::expandingDirections() | |
[const] | bool | hasHeightForWidth | Method bool QSizePolicy::hasHeightForWidth() | |
[const] | bool | hasWidthForHeight | Method bool QSizePolicy::hasWidthForHeight() | |
[const] | bool | heightForWidth | Method bool QSizePolicy::hasHeightForWidth() | |
void | heightForWidth= | (bool b) | Method void QSizePolicy::setHeightForWidth(bool b) | |
[const] | QSizePolicy_Policy | horizontalPolicy | Method QSizePolicy::Policy QSizePolicy::horizontalPolicy() | |
void | horizontalPolicy= | (const QSizePolicy_Policy d) | Method void QSizePolicy::setHorizontalPolicy(QSizePolicy::Policy d) | |
[const] | int | horizontalStretch | Method int QSizePolicy::horizontalStretch() | |
void | horizontalStretch= | (int stretchFactor) | Method void QSizePolicy::setHorizontalStretch(int stretchFactor) | |
[const] | bool | retainSizeWhenHidden | Method bool QSizePolicy::retainSizeWhenHidden() | |
void | retainSizeWhenHidden= | (bool retainSize) | Method void QSizePolicy::setRetainSizeWhenHidden(bool retainSize) | |
void | setControlType | (const QSizePolicy_ControlType type) | Method void QSizePolicy::setControlType(QSizePolicy::ControlType type) | |
void | setHeightForWidth | (bool b) | Method void QSizePolicy::setHeightForWidth(bool b) | |
void | setHorizontalPolicy | (const QSizePolicy_Policy d) | Method void QSizePolicy::setHorizontalPolicy(QSizePolicy::Policy d) | |
void | setHorizontalStretch | (int stretchFactor) | Method void QSizePolicy::setHorizontalStretch(int stretchFactor) | |
void | setRetainSizeWhenHidden | (bool retainSize) | Method void QSizePolicy::setRetainSizeWhenHidden(bool retainSize) | |
void | setVerticalPolicy | (const QSizePolicy_Policy d) | Method void QSizePolicy::setVerticalPolicy(QSizePolicy::Policy d) | |
void | setVerticalStretch | (int stretchFactor) | Method void QSizePolicy::setVerticalStretch(int stretchFactor) | |
void | setWidthForHeight | (bool b) | Method void QSizePolicy::setWidthForHeight(bool b) | |
void | transpose | Method void QSizePolicy::transpose() | ||
[const] | QSizePolicy | transposed | Method QSizePolicy QSizePolicy::transposed() | |
[const] | QSizePolicy_Policy | verticalPolicy | Method QSizePolicy::Policy QSizePolicy::verticalPolicy() | |
void | verticalPolicy= | (const QSizePolicy_Policy d) | Method void QSizePolicy::setVerticalPolicy(QSizePolicy::Policy d) | |
[const] | int | verticalStretch | Method int QSizePolicy::verticalStretch() | |
void | verticalStretch= | (int stretchFactor) | Method void QSizePolicy::setVerticalStretch(int stretchFactor) | |
[const] | bool | widthForHeight | Method bool QSizePolicy::hasWidthForHeight() | |
void | widthForHeight= | (bool b) | Method void QSizePolicy::setWidthForHeight(bool b) |
[static,const] | QSizePolicy_ControlType | ButtonBox | Enum constant QSizePolicy::ButtonBox | |
[static,const] | QSizePolicy_ControlType | CheckBox | Enum constant QSizePolicy::CheckBox | |
[static,const] | QSizePolicy_ControlType | ComboBox | Enum constant QSizePolicy::ComboBox | |
[static,const] | QSizePolicy_ControlType | DefaultType | Enum constant QSizePolicy::DefaultType | |
[static,const] | QSizePolicy_Policy | Expanding | Enum constant QSizePolicy::Expanding | |
[static,const] | QSizePolicy_Policy | Fixed | Enum constant QSizePolicy::Fixed | |
[static,const] | QSizePolicy_ControlType | Frame | Enum constant QSizePolicy::Frame | |
[static,const] | QSizePolicy_ControlType | GroupBox | Enum constant QSizePolicy::GroupBox | |
[static,const] | QSizePolicy_Policy | Ignored | Enum constant QSizePolicy::Ignored | |
[static,const] | QSizePolicy_ControlType | Label | Enum constant QSizePolicy::Label | |
[static,const] | QSizePolicy_ControlType | Line | Enum constant QSizePolicy::Line | |
[static,const] | QSizePolicy_ControlType | LineEdit | Enum constant QSizePolicy::LineEdit | |
[static,const] | QSizePolicy_Policy | Maximum | Enum constant QSizePolicy::Maximum | |
[static,const] | QSizePolicy_Policy | Minimum | Enum constant QSizePolicy::Minimum | |
[static,const] | QSizePolicy_Policy | MinimumExpanding | Enum constant QSizePolicy::MinimumExpanding | |
[static,const] | QSizePolicy_Policy | Preferred | Enum constant QSizePolicy::Preferred | |
[static,const] | QSizePolicy_ControlType | PushButton | Enum constant QSizePolicy::PushButton | |
[static,const] | QSizePolicy_ControlType | RadioButton | Enum constant QSizePolicy::RadioButton | |
[static,const] | QSizePolicy_ControlType | Slider | Enum constant QSizePolicy::Slider | |
[static,const] | QSizePolicy_ControlType | SpinBox | Enum constant QSizePolicy::SpinBox | |
[static,const] | QSizePolicy_ControlType | TabWidget | Enum constant QSizePolicy::TabWidget | |
[static,const] | QSizePolicy_ControlType | ToolButton | Enum constant QSizePolicy::ToolButton |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
!= | Signature: [const] bool != (const QSizePolicy s) Description: Method bool QSizePolicy::operator!=(const QSizePolicy &s) |
== | Signature: [const] bool == (const QSizePolicy s) Description: Method bool QSizePolicy::operator==(const QSizePolicy &s) |
ButtonBox | Signature: [static,const] QSizePolicy_ControlType ButtonBox Description: Enum constant QSizePolicy::ButtonBox Python specific notes: |
CheckBox | Signature: [static,const] QSizePolicy_ControlType CheckBox Description: Enum constant QSizePolicy::CheckBox Python specific notes: |
ComboBox | Signature: [static,const] QSizePolicy_ControlType ComboBox Description: Enum constant QSizePolicy::ComboBox Python specific notes: |
DefaultType | Signature: [static,const] QSizePolicy_ControlType DefaultType Description: Enum constant QSizePolicy::DefaultType Python specific notes: |
Expanding | Signature: [static,const] QSizePolicy_Policy Expanding Description: Enum constant QSizePolicy::Expanding Python specific notes: |
Fixed | Signature: [static,const] QSizePolicy_Policy Fixed Description: Enum constant QSizePolicy::Fixed Python specific notes: |
Frame | Signature: [static,const] QSizePolicy_ControlType Frame Description: Enum constant QSizePolicy::Frame Python specific notes: |
GroupBox | Signature: [static,const] QSizePolicy_ControlType GroupBox Description: Enum constant QSizePolicy::GroupBox Python specific notes: |
Ignored | Signature: [static,const] QSizePolicy_Policy Ignored Description: Enum constant QSizePolicy::Ignored Python specific notes: |
Label | Signature: [static,const] QSizePolicy_ControlType Label Description: Enum constant QSizePolicy::Label Python specific notes: |
Line | Signature: [static,const] QSizePolicy_ControlType Line Description: Enum constant QSizePolicy::Line Python specific notes: |
LineEdit | Signature: [static,const] QSizePolicy_ControlType LineEdit Description: Enum constant QSizePolicy::LineEdit Python specific notes: |
Maximum | Signature: [static,const] QSizePolicy_Policy Maximum Description: Enum constant QSizePolicy::Maximum Python specific notes: |
Minimum | Signature: [static,const] QSizePolicy_Policy Minimum Description: Enum constant QSizePolicy::Minimum Python specific notes: |
MinimumExpanding | Signature: [static,const] QSizePolicy_Policy MinimumExpanding Description: Enum constant QSizePolicy::MinimumExpanding Python specific notes: |
Preferred | Signature: [static,const] QSizePolicy_Policy Preferred Description: Enum constant QSizePolicy::Preferred Python specific notes: |
PushButton | Signature: [static,const] QSizePolicy_ControlType PushButton Description: Enum constant QSizePolicy::PushButton Python specific notes: |
RadioButton | Signature: [static,const] QSizePolicy_ControlType RadioButton Description: Enum constant QSizePolicy::RadioButton Python specific notes: |
Slider | Signature: [static,const] QSizePolicy_ControlType Slider Description: Enum constant QSizePolicy::Slider Python specific notes: |
SpinBox | Signature: [static,const] QSizePolicy_ControlType SpinBox Description: Enum constant QSizePolicy::SpinBox Python specific notes: |
TabWidget | Signature: [static,const] QSizePolicy_ControlType TabWidget Description: Enum constant QSizePolicy::TabWidget Python specific notes: |
ToolButton | Signature: [static,const] QSizePolicy_ControlType ToolButton Description: Enum constant QSizePolicy::ToolButton Python specific notes: |
_const_cast | Signature: [const] QSizePolicy ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
assign | Signature: void assign (const QSizePolicy other) Description: Assigns another object to self |
controlType | Signature: [const] QSizePolicy_ControlType controlType Description: Method QSizePolicy::ControlType QSizePolicy::controlType() Python specific notes: |
controlType= | Signature: void controlType= (const QSizePolicy_ControlType type) Description: Method void QSizePolicy::setControlType(QSizePolicy::ControlType type) Python specific notes: |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
dup | Signature: [const] new QSizePolicy ptr dup Description: Creates a copy of self Python specific notes: |
expandingDirections | Signature: [const] Qt_QFlags_Orientation expandingDirections Description: Method QFlags<Qt::Orientation> QSizePolicy::expandingDirections() |
hasHeightForWidth | Signature: [const] bool hasHeightForWidth Description: Method bool QSizePolicy::hasHeightForWidth() Python specific notes: |
hasWidthForHeight | Signature: [const] bool hasWidthForHeight Description: Method bool QSizePolicy::hasWidthForHeight() Python specific notes: |
heightForWidth | Signature: [const] bool heightForWidth Description: Method bool QSizePolicy::hasHeightForWidth() Python specific notes: |
heightForWidth= | Signature: void heightForWidth= (bool b) Description: Method void QSizePolicy::setHeightForWidth(bool b) Python specific notes: |
horizontalPolicy | Signature: [const] QSizePolicy_Policy horizontalPolicy Description: Method QSizePolicy::Policy QSizePolicy::horizontalPolicy() Python specific notes: |
horizontalPolicy= | Signature: void horizontalPolicy= (const QSizePolicy_Policy d) Description: Method void QSizePolicy::setHorizontalPolicy(QSizePolicy::Policy d) Python specific notes: |
horizontalStretch | Signature: [const] int horizontalStretch Description: Method int QSizePolicy::horizontalStretch() Python specific notes: |
horizontalStretch= | Signature: void horizontalStretch= (int stretchFactor) Description: Method void QSizePolicy::setHorizontalStretch(int stretchFactor) Python specific notes: |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
new | (1) Signature: [static] new QSizePolicy new Description: Constructor QSizePolicy::QSizePolicy() This method creates an object of class QSizePolicy. Python specific notes: |
(2) Signature: [static] new QSizePolicy new (const QSizePolicy_Policy horizontal, const QSizePolicy_Policy vertical, const QSizePolicy_ControlType type = QSizePolicy::DefaultType) Description: Constructor QSizePolicy::QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type) This method creates an object of class QSizePolicy. Python specific notes: | |
retainSizeWhenHidden | Signature: [const] bool retainSizeWhenHidden Description: Method bool QSizePolicy::retainSizeWhenHidden() Python specific notes: |
retainSizeWhenHidden= | Signature: void retainSizeWhenHidden= (bool retainSize) Description: Method void QSizePolicy::setRetainSizeWhenHidden(bool retainSize) Python specific notes: |
setControlType | Signature: void setControlType (const QSizePolicy_ControlType type) Description: Method void QSizePolicy::setControlType(QSizePolicy::ControlType type) Python specific notes: |
setHeightForWidth | Signature: void setHeightForWidth (bool b) Description: Method void QSizePolicy::setHeightForWidth(bool b) Python specific notes: |
setHorizontalPolicy | Signature: void setHorizontalPolicy (const QSizePolicy_Policy d) Description: Method void QSizePolicy::setHorizontalPolicy(QSizePolicy::Policy d) Python specific notes: |
setHorizontalStretch | Signature: void setHorizontalStretch (int stretchFactor) Description: Method void QSizePolicy::setHorizontalStretch(int stretchFactor) Python specific notes: |
setRetainSizeWhenHidden | Signature: void setRetainSizeWhenHidden (bool retainSize) Description: Method void QSizePolicy::setRetainSizeWhenHidden(bool retainSize) Python specific notes: |
setVerticalPolicy | Signature: void setVerticalPolicy (const QSizePolicy_Policy d) Description: Method void QSizePolicy::setVerticalPolicy(QSizePolicy::Policy d) Python specific notes: |
setVerticalStretch | Signature: void setVerticalStretch (int stretchFactor) Description: Method void QSizePolicy::setVerticalStretch(int stretchFactor) Python specific notes: |
setWidthForHeight | Signature: void setWidthForHeight (bool b) Description: Method void QSizePolicy::setWidthForHeight(bool b) Python specific notes: |
transpose | Signature: void transpose Description: Method void QSizePolicy::transpose() |
transposed | Signature: [const] QSizePolicy transposed Description: Method QSizePolicy QSizePolicy::transposed() |
verticalPolicy | Signature: [const] QSizePolicy_Policy verticalPolicy Description: Method QSizePolicy::Policy QSizePolicy::verticalPolicy() Python specific notes: |
verticalPolicy= | Signature: void verticalPolicy= (const QSizePolicy_Policy d) Description: Method void QSizePolicy::setVerticalPolicy(QSizePolicy::Policy d) Python specific notes: |
verticalStretch | Signature: [const] int verticalStretch Description: Method int QSizePolicy::verticalStretch() Python specific notes: |
verticalStretch= | Signature: void verticalStretch= (int stretchFactor) Description: Method void QSizePolicy::setVerticalStretch(int stretchFactor) Python specific notes: |
widthForHeight | Signature: [const] bool widthForHeight Description: Method bool QSizePolicy::hasWidthForHeight() Python specific notes: |
widthForHeight= | Signature: void widthForHeight= (bool b) Description: Method void QSizePolicy::setWidthForHeight(bool b) Python specific notes: |