1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
QHeaderView::section { background-color: red; font-size: 10px; } QHeaderView::section:checked { background-color: green; font-size: 20px; font-weight: bold; } QHeaderView::section:first { background-color: yellow; font-size: 20px; font-weight: normal; }