From c5e710441324cfa4758f1639c62faac8d657d540 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 13 Sep 2019 08:27:02 +0200 Subject: [PATCH] Set autoRaise property to true for QToolButton of DockWidgetTab --- src/DockWidgetTab.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index 0d890c4..ca4ad27 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -129,7 +129,9 @@ struct DockWidgetTabPrivate { if (testConfigFlag(CDockManager::TabCloseButtonIsToolButton)) { - return new QToolButton(); + auto Button = new QToolButton(); + Button->setAutoRaise(true); + return Button; } else {