From 7ab4c9af2efd2947db424a7e92afffe8aadfc4be Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 25 Feb 2022 21:41:46 +0100 Subject: [PATCH] Handle StyleChange event in DockWidgetTab to update icon --- src/DockWidgetTab.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index ece821c..512e6b5 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -716,6 +716,10 @@ bool CDockWidgetTab::event(QEvent *e) } } #endif + if (e->type() == QEvent::StyleChange) + { + d->updateIcon(); + } return Super::event(e); }