c++qtqtabbar

How to remove the distance between the QTabBar scroller buttons?


Please tell me why there is a distance between the QTabBar scroller buttons with a small width of the scroller buttons and how can this be fixed?

enter image description here

In this case, I have the following in the style sheet:

QTabBar::scroller {
    width: 6px;
}

At the same time, the whole paradox is that in a pure example there is no distance between the buttons and I can't understand how this could have gone wrong in my example. Even the type of this indentation is unclear: it is neither a widget neither a layout, it is not clear what kind of object it is.


Solution

  • It's because of an outdated version of Qt.