设置样式表:
QTableView QTableCornerButton::section
{
background:rgb(200,200,200);
border:1px solid black;
border-left:transparent;
border-top:transparent;
}
QHeaderView::section{
height:20px;
background:rgb(200,200,200);
border:1px solid black;
border-left:transparent;
border-top:transparent;
}
将标题和左上角设置同样背景色;设置分割线