diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index de18b69..3ee3797 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -100,6 +100,7 @@ public: */ void insertWidget(int index, QWidget* Widget) { + Widget->setParent(nullptr); if (index < 0) { index = m_Widgets.count();