Skip to content

Commit

Permalink
Fix layout initialization by removing unnecessary parent in QHBoxLayout.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 26, 2024
1 parent eead140 commit 4f45983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4f45983

Please sign in to comment.