Layouting::Widget Class
class Layouting::WidgetBase class for widget builder classes. More...
| Header: | #include <layoutbuilder.h> |
| Inherits: | Layouting::Object |
| Inherited By: | 16 typesLayouting::Canvas, Layouting::CompletingTextEdit, Layouting::Group, Layouting::Label, Layouting::LineEdit, Layouting::MarkdownBrowser, Layouting::PushButton, Layouting::ScrollArea, Layouting::SpinBox, Layouting::Spinner, Layouting::Splitter, Layouting::Stack, Layouting::TabWidget, Layouting::TextEdit, Layouting::ToolBar, and Layouting::ToolButton |
Public Functions
Detailed Description
Wraps a QWidget-derived object. Instances are ephemeral: construct and configure. They call emerge() to retrieve the underlying QWidget, or nest the builder inside a Layout to embed it directly.
See also Layouting::Layout.
Member Function Documentation
[noexcept default] Widget::Widget()
Default-constructs an instance of Widget.
QWidget *Widget::emerge() const
Returns the underlying QWidget.
The caller does not take ownership. The widget is owned by the builder's parent widget or layout.
void Widget::setLayout(const Layouting::Layout &layout)
Sets layout as the layout of this widget, finalizing it first.
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.