How To Increase The Row Height Of The Header Labels And Font Size Of The Row Items In Qtablewidget In Pyqt4
Here i want to increase the row height of the headerlabel and font size of the cell items. In my code I am using self.table.setRowHeight() method, but its not working. So please te
Solution 1:
If you want to increase the height of the horizontal header you must use setFixedHeight()
, for example:
self.table.horizontalHeader().setFixedHeight(60)
If you want to increase the font of the cells you must set the setFont()
method of the QTableWidget
:
fnt = self.table.font()
fnt.setPointSize(40)
self.table.setFont(fnt)
Post a Comment for "How To Increase The Row Height Of The Header Labels And Font Size Of The Row Items In Qtablewidget In Pyqt4"