Widget.addChild

Adds a child to the given position. This is protected because you generally shouldn't be calling this directly. Instead, construct widgets with the parent directly.

This is available primarily to be overridden. For example, MainWindow overrides it to redirect its children into a central widget.

class Widget
protected
void
addChild
(,
int position = int.max
)

Meta