![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
| PaddingSpacerItem () | |
| Qt::Orientations | expandingDirections () const override |
| Returns whether this layout item can make use of more space than sizeHint(). | |
| PaddingSpacerItem () | |
| Qt::Orientations | expandingDirections () const override |
| Returns whether this layout item can make use of more space than sizeHint(). | |
| Public Member Functions inherited from QSpacerItem | |
| QSpacerItem (int w, int h, QSizePolicy::Policy hData=QSizePolicy::Minimum, QSizePolicy::Policy vData=QSizePolicy::Minimum) | |
| Constructs a spacer item with preferred width w, preferred height h, horizontal size policy hPolicy and vertical size policy vPolicy. | |
| ~QSpacerItem () | |
| Destructor. | |
| void | changeSize (int w, int h, QSizePolicy::Policy hData=QSizePolicy::Minimum, QSizePolicy::Policy vData=QSizePolicy::Minimum) |
| Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hPolicy and vertical size policy vPolicy. | |
| QSize | sizeHint () const override |
| \reimp | |
| QSize | minimumSize () const override |
| \reimp | |
| QSize | maximumSize () const override |
| \reimp | |
| Qt::Orientations | expandingDirections () const override |
| \reimp | |
| bool | isEmpty () const override |
Returns true. | |
| void | setGeometry (const QRect &) override |
| \reimp | |
| QRect | geometry () const override |
| \reimp | |
| QSpacerItem * | spacerItem () override |
| Returns a pointer to this object. | |
| QSizePolicy | sizePolicy () const |
| Public Member Functions inherited from QLayoutItem | |
| QLayoutItem (Qt::Alignment alignment=Qt::Alignment()) | |
| Constructs a layout item with an alignment. | |
| virtual | ~QLayoutItem () |
| Destroys the QLayoutItem. | |
| virtual bool | hasHeightForWidth () const |
Returns true if this layout's preferred height depends on its width; otherwise returns false. | |
| virtual int | heightForWidth (int) const |
| Returns the preferred height for this layout item, given the width, which is not used in this default implementation. | |
| virtual int | minimumHeightForWidth (int) const |
| Returns the minimum height this widget needs for the given width, w. | |
| virtual void | invalidate () |
| Invalidates any cached information in this layout item. | |
| virtual QWidget * | widget () const |
| If this item manages a QWidget, returns that widget. | |
| virtual QLayout * | layout () |
| If this item is a QLayout, it is returned as a QLayout; otherwise \nullptr is returned. | |
| Qt::Alignment | alignment () const |
| Returns the alignment of this item. | |
| void | setAlignment (Qt::Alignment a) |
| Sets the alignment of this item to alignment. | |
| virtual QSizePolicy::ControlTypes | controlTypes () const |
| Returns the control type(s) for the layout item. | |
Additional Inherited Members | |
| Protected Attributes inherited from QLayoutItem | |
| Qt::Alignment | align |
Definition at line 94 of file qlayout_widget.cpp.
|
inline |
Definition at line 96 of file qlayout_widget.cpp.
|
inline |
Definition at line 96 of file qlayout_widget.cpp.
|
inlineoverridevirtual |
Returns whether this layout item can make use of more space than sizeHint().
A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, whereas Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions.
Implements QLayoutItem.
Definition at line 98 of file qlayout_widget.cpp.
|
inlineoverridevirtual |
Returns whether this layout item can make use of more space than sizeHint().
A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, whereas Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions.
Implements QLayoutItem.
Definition at line 98 of file qlayout_widget.cpp.