From 7dbc38c9c184179f442c45919ed7e7ffe93c73fc Mon Sep 17 00:00:00 2001 From: gongheng Date: Tue, 1 Sep 2026 20:04:04 +0800 Subject: [PATCH] fix(tabbar): disable scroll buttons in tab bar The tab bar currently shows the built-in left/right scroll buttons when tabs overflow. This introduces extra navigation controls that are not needed for the editor UI. Disable the DTabBar scroll buttons while keeping the add-tab action available, so the tab strip keeps a cleaner and more consistent layout. Log: fix issue Bug: https://pms.uniontech.com/bug-view-375693.html --- src/controls/tabbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controls/tabbar.cpp b/src/controls/tabbar.cpp index b28080e9..6a66beb1 100644 --- a/src/controls/tabbar.cpp +++ b/src/controls/tabbar.cpp @@ -67,6 +67,7 @@ Tabbar::Tabbar(QWidget *parent) setMovable(true); setTabsClosable(true); setVisibleAddButton(true); + setUsesScrollButtons(false); setDragable(true); setAcceptDrops(true); // setStartDragDistance(40);