diff --git a/src/lib/tabwidget/combotabbar.cpp b/src/lib/tabwidget/combotabbar.cpp index c1ff06d0d..f81840ffe 100644 --- a/src/lib/tabwidget/combotabbar.cpp +++ b/src/lib/tabwidget/combotabbar.cpp @@ -1127,7 +1127,9 @@ void TabBarHelper::paintEvent(QPaintEvent* event) optTabBase.tabBarRect |= tabRect(i); } - optTabBase.selectedTabRect = QRect(); + if (m_activeTabBar) { + optTabBase.selectedTabRect = tabRect(selected); + } if (drawBase()) { p.drawPrimitive(QStyle::PE_FrameTabBarBase, optTabBase);