[PyQt] customize QTabBar

tahiri.ahmed tahiri.ahmed at gmail.com
Mon Nov 26 15:01:29 GMT 2007


hello;
I am using a subclass of QTabWidget and i want to change the following 
properties of its QTabBar:
* enlarge the qtabbar object
* change it color
* align horizontaly the text
* set the buttons to be flat

this is the code i am using

	self.bar = self.tabBar()
        self.bar.setFixedWidth(300)
        self.bar.setFixedHeight(250)
        self.bar.setTabTextColor(0, QtGui.QColor(23, 45, 89))
        self.setTabPosition(QtGui.QTabWidget.West)

but it's far to be adequate to what i expect
thanks, and excuse my english.


More information about the PyQt mailing list