On this page

Layouting::Widget Class

class Layouting::Widget

Base class for widget builder classes. More...

Public Functions

Widget()
QWidget *emerge() const
void setLayout(const Layouting::Layout &layout)

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.