Search code examples
c++qdockwidgetqt5.3qtabbar

Disable secondary scroll button (tear indicator?) in QTabBar


I have a QTabBar looking like this. The screenshot does not show the arrow scroll buttons on its right side. What is the thing on left side called (looking like a torn edge)? It serves as a scroll left button. Is it the tear indicator? I found something like this in the style sheets:

QTabBar::tear { image: url(tear_indicator.png); }

How can I disable it?

QTabBar

^ here, looking like a torn edge, clickable, works like scroll left

Remark: The tab bar is the one appearing automatically with QDockWidget s, none I have created on my own.


Solution

  • You can remove it by StyleSheet

    QTabBar::tear {
        width: 0px; 
        border: none;
    }