how to change "tab" title ?
Moved
Unsolved
General and Desktop
-
I can test add tooltip to "tab" , however , cannot find SIMPLE / similar way to change 'tab" title
I found how to addTab - now I like to copy existing tab widgets to new tab....
Dialog *TEST_Dialog_1 = new Dialog(); TEST_Dialog_1->show(); // test change tab HERE ?? text =" TEST tooltip....."; TEST_Dialog_1->ui->tab_4->setToolTip(text);
-
-
The text of a tab can be set via QTabBar::setTabText(int index, const QString &text).
-
@AnneRanch said in how to change "tab" title ?:
TEST_Dialog_1->ui->tab_4->setToolTip(text);
You should not access the ui from other widgets directly.