close



You can get all tabBars contained in a tabWidget by using findChild, which is a method of QTabWidget.

After that, you can hide them at once.

 
QTabBar *tabBar = ui->tabWidget->findChild<QTabBar *>();
tabBar->hide();

And remove the boarder by calling setStyleSheet method

ui->tabWidget->setStyleSheet("QTabWidget::pane { border: 0; }");

How to let a statusbar load a label automatically

ui->statusbar->addPermanentWidget(ui->label_counter1);
arrow
arrow
    全站熱搜

    me1237guy 發表在 痞客邦 留言(0) 人氣()