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);
全站熱搜
創作者介紹
創作者 me1237guy 的頭像
me1237guy

天天向上

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