I would like to customize the look of QTabWidget tabs themselves (the tabs that we actually click to switch to another tab widget) by changing their height and width (which on OS X look more like pushButtons). How to achieve this?
from PyQt4 import QtGui
app=QtGui.QApplication([])
dialog = QtGui.QDialog()
dialog.setLayout(QtGui.QVBoxLayout())
tab_widget = QtGui.QTabWidget(dialog)
dialog.layout().addWidget(tab_widget)
tab_widget.addTab(QtGui.QWidget(), "First")
tab_widget.addTab(QtGui.QWidget(), "Second")
tab_widget.addTab(QtGui.QWidget(),"Third")
dialog.show()
app.exec_()