PDA

View Full Version : Disable close button on QTabWidget/QTabBar



minimoog
13th March 2009, 03:44
I'm using QTabWidget with close button on each tab (tabsClosable). But I want one or two tabs that can't be closed by the user.

Is there a way to do it? I searched the documentation and I don't have any clue...

Thanks in advance,
Toni

munna
16th March 2009, 06:25
QTabBar has a function called QTabBar::setTabButton . You can create your own close button and set it to the tabs that you want.