Layout Class
class Layouting::LayoutHeader: | #include <Layout> |
Inherits: | Layouting::Object |
Public Functions
void | addItem(Layouting::Layout::I item) |
void | addItems(std::initializer_list<Layouting::Layout::I> items) |
void | addRow(std::initializer_list<Layouting::Layout::I> items) |
void | attachTo(QWidget *widget) |
Detailed Description
The Layout class is a base class for more specific builder classes to create QLayout derived objects.
Member Function Documentation
void Layout::addItem(Layouting::Layout::I item)
Adds the layout item item as a sub item.
void Layout::addItems(std::initializer_list<Layouting::Layout::I> items)
Adds the layout items items as sub items.
void Layout::addRow(std::initializer_list<Layouting::Layout::I> 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 Layout::attachTo(QWidget *widget)
Attaches the constructed layout to the provided QWidget widget.
This operation can only be performed once per LayoutBuilder instance.
Copyright © The Qt Company Ltd. and other contributors. 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.