LayoutItem Classclass Layouting::LayoutItem
The LayoutItem class represents widgets, layouts, and aggregate items for use in conjunction with layout builders. More...
|void||addItem(const Layouting::LayoutItem &item)|
|void||addItems(const Layouting::LayoutItems &items)|
|void||addRow(const Layouting::LayoutItems &items)|
|void||attachTo(QWidget *w) const|
Layout items are typically implicitly constructed when adding items to a
LayoutBuilder instance using
LayoutBuilder::addItems() and never stored in user code.
Member Function Documentation
Constructs a layout item instance representing an empty cell.
void LayoutItem::addItem(const Layouting::LayoutItem &item)
Adds the layout item item as sub items.
Adds the layout items items as sub items.
Starts a new row containing items. The row can be further extended by other items using
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.
© 2023 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.