Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set label text in QTabWidget tab

I have QTabWidget on my form and two tabs on it. These tabs have standard text Tab1 and Tab2. How can I change it?

like image 375
0xAX Avatar asked Mar 22 '10 05:03

0xAX


1 Answers

It sounds like you're talking about Qt Designer, since it defaults to showing two tabs (called "Tab 1" and "Tab 2") when you add a QTabWidget through the interface.

If so, click on the tab you want to rename, then in the Property Editor (if you can't find it make sure it's visible by using the View->Property Editor menu item) scroll down to the bottom and look for the currentTabText property. You can change the tab's name right there.

like image 155
richardwb Avatar answered Sep 28 '22 01:09

richardwb