diff --git a/src/DockAreaTabBar.cpp b/src/DockAreaTabBar.cpp index 1b26435..898fc48 100644 --- a/src/DockAreaTabBar.cpp +++ b/src/DockAreaTabBar.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include "FloatingDockContainer.h" #include "DockAreaWidget.h" @@ -107,7 +108,9 @@ void DockAreaTabBarPrivate::updateTabs() { TabWidget->show(); TabWidget->setActiveTab(true); - _this->ensureWidgetVisible(TabWidget); + QTimer::singleShot(0, [&, TabWidget]{ + _this->ensureWidgetVisible(TabWidget); + }); } else {