From 4f45983cb6dfa92bee95420f1ab7ae2357f310ce Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:01:28 +0100 Subject: [PATCH] Fix layout initialization by removing unnecessary parent in QHBoxLayout. --- examples/Examples.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Examples.cpp b/examples/Examples.cpp index 82c26d2..d4b7c61 100644 --- a/examples/Examples.cpp +++ b/examples/Examples.cpp @@ -15,7 +15,7 @@ Examples::Examples() startStopButtonCounter_{QStringLiteral("start")} { setWindowTitle("Wble library examples"); - QHBoxLayout* widgetLayout{new QHBoxLayout(this)}; + QHBoxLayout* widgetLayout{new QHBoxLayout()}; QVBoxLayout* leftWidgetColumn = createLeftWidgetColumn(); widgetLayout->addLayout(leftWidgetColumn); QVBoxLayout* rightWidgetColumn = createRightWidgetColumn();