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
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
QTabBar has a function called QTabBar::setTabButton. You can create your own close button and set it to the tabs that you want.
Mithin
www.mithin.in
Bookmarks