diff --git a/widgets/boxlayout.cpp b/widgets/boxlayout.cpp index db5851e81..813ad927b 100644 --- a/widgets/boxlayout.cpp +++ b/widgets/boxlayout.cpp @@ -37,6 +37,7 @@ BoxLayout::BoxLayout(LayoutItem *parent) : Layout(parent), d(new Private) { + parent->setLayout(this); } BoxLayout::~BoxLayout()