How to set font size of header and set row's height for QTableview
General and Desktop
5
Posts
2
Posters
5.0k
Views
1
Watching
-
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 sripooja,
Thank you. It works. :)
I'm still stuck on setting font size of header.
-
Hi,
I tried but it doesn't work. This is what I tried:
@ui->tblView->horizontalHeader()->setFont(QFont("Tahoma", 20));@