How to set font size of header and set row's height for QTableview
-
Hi,
I tried to set font size of header and set row's height for QTableview but they didn't work. This is what I tried to do:
@QTableView#tblView::item
{
height: 44px;
}QTableView#tblView QHeaderView::section:horizontal
{
font-size: 12px;
}@Please give me some advices for it. Thanks.
-
Hi,
QtableView is having setRowHeight(int row,int height) method just try and check it.
-
Hi sripooja,
Thank you. It works. :)
I'm still stuck on setting font size of header.
-
U r Welcome..
QHeaderView is having setFont(QFont *) method Check it Once.
-
Hi,
I tried but it doesn't work. This is what I tried:
@ui->tblView->horizontalHeader()->setFont(QFont("Tahoma", 20));@