I’m trying to customize appearance of header for my QTableWidget using stylesheet. I’m doing this way:
QHeaderView::section
{
background-color: transparent;
color: black;
font: 10pt "MS Shell Dlg 2";
padding-left: 4px;
border: 1px solid #6c6c6c;
}
It looks nice in Qt Designer and in it’s preview mode, but when I’m running the program, header is created with default colour and font.
Qt version 4.7.2, OS Windows XP. Thanks.
Well, I’ve discovered that this problem appears only when I’m using
QTableWidget. So the solution I found is to useQTableViewinstead.