PDA

View Full Version : QTabWidget tab



baray98
20th November 2007, 00:39
I want to make a tab on Qtabwidget that has an "x" or close button at the right corner of the tab.

Is there any way i can do this on a QtabWidger?

baray98

momesana
20th November 2007, 01:16
This has been discussed before. No, there is no Easy way to do that. You have to implement the Tabbar yourself which means, drawing the tabbar yourself in paintEvent. It is not that difficult if you can live with a Tabbar that is not stylable and does not respect stylesheets. If you want it to respect styles and stylesheets however, it is sort of an herkulean task.