设置表头效果 使用 QHeaderView::section 但是左上角这一块没有作用到 使用下面qss解决 QTableCornerButton::section { background-color: #60669B; }