![]() |
Qt 6.x
The Qt SDK
|
#include <qlayoutpolicy_p.h>
Collaboration diagram for QLayoutPolicy:Public Types | |
| enum | PolicyFlag { GrowFlag = 1 , ExpandFlag = 2 , ShrinkFlag = 4 , IgnoreFlag = 8 } |
| enum | ControlType { DefaultType = 0x00000001 , ButtonBox = 0x00000002 , CheckBox = 0x00000004 , ComboBox = 0x00000008 , Frame = 0x00000010 , GroupBox = 0x00000020 , Label = 0x00000040 , Line = 0x00000080 , LineEdit = 0x00000100 , PushButton = 0x00000200 , RadioButton = 0x00000400 , Slider = 0x00000800 , SpinBox = 0x00001000 , TabWidget = 0x00002000 , ToolButton = 0x00004000 } |
Public Member Functions | |
| QLayoutPolicy () | |
| QLayoutPolicy (Policy horizontal, Policy vertical, ControlType type=DefaultType) | |
| Policy | horizontalPolicy () const |
| Policy | verticalPolicy () const |
| Q_GUI_EXPORT ControlType | controlType () const |
| void | setHorizontalPolicy (Policy d) |
| void | setVerticalPolicy (Policy d) |
| Q_GUI_EXPORT void | setControlType (ControlType type) |
| Qt::Orientations | expandingDirections () const |
| void | setHeightForWidth (bool b) |
| bool | hasHeightForWidth () const |
| void | setWidthForHeight (bool b) |
| bool | hasWidthForHeight () const |
| bool | operator== (const QLayoutPolicy &s) const |
| bool | operator!= (const QLayoutPolicy &s) const |
| int | horizontalStretch () const |
| int | verticalStretch () const |
| void | setHorizontalStretch (int stretchFactor) |
| void | setVerticalStretch (int stretchFactor) |
| void | transpose () |
Static Public Attributes | |
| static constexpr Policy | Fixed = {} |
| static constexpr Policy | Minimum = GrowFlag |
| static constexpr Policy | Maximum = ShrinkFlag |
| static constexpr Policy | Preferred = Minimum | Maximum |
| static constexpr Policy | MinimumExpanding = Minimum | ExpandFlag |
| static constexpr Policy | Expanding = Preferred | ExpandFlag |
| static constexpr Policy | Ignored = Preferred | IgnoreFlag |
Friends | |
| QDataStream & | operator<< (QDataStream &, const QLayoutPolicy &) |
| Writes the size policy to the data stream stream. | |
| QDataStream & | operator>> (QDataStream &, QLayoutPolicy &) |
| Reads the size policy from the data stream stream. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| QDataStream & | operator<< (QDataStream &stream, const QLayoutPolicy &policy) |
| Writes the size policy to the data stream stream. | |
| QDataStream & | operator>> (QDataStream &stream, QLayoutPolicy &policy) |
| Reads the size policy from the data stream stream. | |
Definition at line 31 of file qlayoutpolicy_p.h.
| Enumerator | |
|---|---|
| DefaultType | |
| ButtonBox | |
| CheckBox | |
| ComboBox | |
| Frame | |
| GroupBox | |
| Label | |
| Line | |
| LineEdit | |
| PushButton | |
| RadioButton | |
| Slider | |
| SpinBox | |
| TabWidget | |
| ToolButton | |
Definition at line 53 of file qlayoutpolicy_p.h.
| Enumerator | |
|---|---|
| GrowFlag | |
| ExpandFlag | |
| ShrinkFlag | |
| IgnoreFlag | |
Definition at line 36 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 72 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 74 of file qlayoutpolicy_p.h.
References setControlType().
Here is the call graph for this function:| QLayoutPolicy::ControlType QLayoutPolicy::controlType | ( | ) | const |
Definition at line 36 of file qlayoutpolicy.cpp.
|
inline |
Definition at line 88 of file qlayoutpolicy_p.h.
References ExpandFlag, Qt::Horizontal, horizontalPolicy(), Qt::Vertical, and verticalPolicy().
Here is the call graph for this function:
|
inline |
Definition at line 98 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 100 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 80 of file qlayoutpolicy_p.h.
Referenced by expandingDirections(), and transpose().
Here is the caller graph for this function:
|
inline |
Definition at line 105 of file qlayoutpolicy_p.h.
Referenced by transpose().
Here is the caller graph for this function:
|
inline |
Definition at line 103 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 102 of file qlayoutpolicy_p.h.
| QT_BEGIN_NAMESPACE void QLayoutPolicy::setControlType | ( | ControlType | type | ) |
Definition at line 10 of file qlayoutpolicy.cpp.
References i.
Referenced by QLayoutPolicy().
Here is the caller graph for this function:
|
inline |
Definition at line 97 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 84 of file qlayoutpolicy_p.h.
References d.
Referenced by transpose().
Here is the caller graph for this function:
|
inline |
Definition at line 107 of file qlayoutpolicy_p.h.
References qBound().
Referenced by transpose().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 85 of file qlayoutpolicy_p.h.
References d.
Referenced by transpose().
Here is the caller graph for this function:
|
inline |
Definition at line 108 of file qlayoutpolicy_p.h.
References qBound().
Referenced by transpose().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 99 of file qlayoutpolicy_p.h.
|
inline |
Definition at line 147 of file qlayoutpolicy_p.h.
References horizontalPolicy(), horizontalStretch(), setHorizontalPolicy(), setHorizontalStretch(), setVerticalPolicy(), setVerticalStretch(), verticalPolicy(), and verticalStretch().
Here is the call graph for this function:
|
inline |
Definition at line 81 of file qlayoutpolicy_p.h.
Referenced by expandingDirections(), and transpose().
Here is the caller graph for this function:
|
inline |
Definition at line 106 of file qlayoutpolicy_p.h.
Referenced by transpose().
Here is the caller graph for this function:
|
friend |
Writes the size policy to the data stream stream.
Definition at line 50 of file qlayoutpolicy.cpp.
|
related |
Writes the size policy to the data stream stream.
Definition at line 50 of file qlayoutpolicy.cpp.
|
friend |
Reads the size policy from the data stream stream.
Definition at line 73 of file qlayoutpolicy.cpp.
|
related |
Reads the size policy from the data stream stream.
Definition at line 73 of file qlayoutpolicy.cpp.
| struct { ... } QLayoutPolicy::bits |
| quint32 QLayoutPolicy::ctype |
Definition at line 126 of file qlayoutpolicy_p.h.
| quint32 QLayoutPolicy::data |
Definition at line 131 of file qlayoutpolicy_p.h.
|
inlinestaticconstexpr |
Definition at line 50 of file qlayoutpolicy_p.h.
|
inlinestaticconstexpr |
Definition at line 45 of file qlayoutpolicy_p.h.
Referenced by QQuickLayout::effectiveSizePolicy_helper().
| quint32 QLayoutPolicy::hfw |
Definition at line 127 of file qlayoutpolicy_p.h.
| quint32 QLayoutPolicy::horPolicy |
Definition at line 124 of file qlayoutpolicy_p.h.
| quint32 QLayoutPolicy::horStretch |
Definition at line 122 of file qlayoutpolicy_p.h.
|
inlinestaticconstexpr |
Definition at line 51 of file qlayoutpolicy_p.h.
|
inlinestaticconstexpr |
Definition at line 47 of file qlayoutpolicy_p.h.
|
inlinestaticconstexpr |
Definition at line 46 of file qlayoutpolicy_p.h.
|
inlinestaticconstexpr |
Definition at line 49 of file qlayoutpolicy_p.h.
| quint32 QLayoutPolicy::padding |
Definition at line 129 of file qlayoutpolicy_p.h.
Definition at line 48 of file qlayoutpolicy_p.h.
Referenced by QQuickLayout::effectiveSizePolicy_helper().
| quint32 QLayoutPolicy::verPolicy |
Definition at line 125 of file qlayoutpolicy_p.h.
| quint32 QLayoutPolicy::verStretch |
Definition at line 123 of file qlayoutpolicy_p.h.
| quint32 QLayoutPolicy::wfh |
Definition at line 128 of file qlayoutpolicy_p.h.