LayoutItem Class
class Layouting::LayoutItemThe LayoutItem class represents widgets, layouts, and aggregate items for use in conjunction with layout builders. More...
| Header: | #include <LayoutItem> |
Public Functions
| LayoutItem() | |
| void | addItem(const LayoutItem &item) |
| void | addItems(const LayoutItems &items) |
| void | addRow(const LayoutItems &items) |
| void | attachTo(QWidget *w) const |
Detailed Description
\inmoduleQtCreator
Layout items are typically implicitly constructed when adding items to a LayoutBuilder instance using LayoutBuilder::addItem() or LayoutBuilder::addItems() and never stored in user code.
Member Function Documentation
LayoutItem::LayoutItem()
Constructs a layout item instance representing an empty cell.
void LayoutItem::addItem(const LayoutItem &item)
Adds the layout item item as sub items.
void LayoutItem::addItems(const LayoutItems &items)
Adds the layout items items as sub items.
void LayoutItem::addRow(const LayoutItems &items)
Starts a new row containing items. The row can be further extended by other items using addItem() or addItems().
See also addItem() and addItems().
void LayoutItem::attachTo(QWidget *w) const
Attaches the constructed layout to the provided QWidget w.
This operation can only be performed once per LayoutBuilder instance.