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 Layouting::LayoutItem &item) |
void | addItems(const Layouting::LayoutItems &items) |
void | addRow(const Layouting::LayoutItems &items) |
void | attachTo(QWidget *w) const |
Detailed Description
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 Layouting::LayoutItem &item)
Adds the layout item item as sub items.
void LayoutItem::addItems(const Layouting::LayoutItems &items)
Adds the layout items items as sub items.
void LayoutItem::addRow(const Layouting::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.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.