    QObject::connect(remove_all_btn, &QToolButton::clicked, this, &ChartsWidget::removeAll);
    QObject::connect(reset_zoom_btn, &QToolButton::clicked, this, &ChartsWidget::zoomReset);
    QObject::connect(&settings, &Settings::changed, this, &ChartsWidget::settingChanged);
    QObject::connect(new_tab_btn, &QToolButton::clicked, this, &ChartsWidget::newTab);
    QObject::connect(tabbar, &QTabBar::tabCloseRequested, this, &ChartsWidget::removeTab);
    QObject::connect(tabbar, &QTabBar::currentChanged, [this](int index) {
      if (index != -1) updateLayout(true);
    });
    QObject::connect(dock_btn, &QToolButton::clicked, [this]() {
      emit dock(!docking);
 
</s> remove   for (int i = 0; i < tabbar->count(); ++i) {
    tabbar->setTabText(i, QString("Tab %1").arg(i + 1));
  }
 </s> add 
  QObject::connect(this, &ChartsWidget::seriesChanged, this, &ChartsWidget::updateTabBar);
    QObject::connect(remove_all_btn, &QToolButton::clicked, this, &ChartsWidget::removeAll);
    QObject::connect(reset_zoom_btn, &QToolButton::clicked, this, &ChartsWidget::zoomReset);
    QObject::connect(&settings, &Settings::changed, this, &ChartsWidget::settingChanged);
    QObject::connect(new_tab_btn, &QToolButton::clicked, this, &ChartsWidget::newTab);
  QObject::connect(this, &ChartsWidget::seriesChanged, this, &ChartsWidget::updateTabBar);
    QObject::connect(tabbar, &QTabBar::tabCloseRequested, this, &ChartsWidget::removeTab);
    QObject::connect(tabbar, &QTabBar::currentChanged, [this](int index) {
      if (index != -1) updateLayout(true);
    });
    QObject::connect(dock_btn, &QToolButton::clicked, [this]() {
      emit dock(!docking);
keep keep keep add keep keep keep keep keep keep
 cabana: display chart count in tab (#27853)

display chart count in tabbar 
tools/cabana/chart/chartswidget.cc