Layouting::Widget Class

class Layouting::Widget

Base class for widget builder classes. More...

Public Functions

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

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.