QTableWidget表头样式

转载请注明出处:http://blog.csdn.net/neochan1108/article/details/78363783

QTableView
{
	background-color: rgba(255, 255, 255, 0); 
	alternate-background-color:#e3edf9;
	font:14px "微软雅黑";
	color:#677483;
	gridline-color: #ccddf0;
}

QTableView::item
{	
	font:14px "微软雅黑";
	color:#677483;
	gridline-color: #ccddf0; 
}

QTableView::item:selected
{	
	color:#677483;
}

QHeaderView::section {	
	color: black;
	font:bold 14px "微软雅黑";
	text-align:center;
	height:32px;
	background-color: #d1dff0;
	border:1px solid #8faac9;
	border-left:none;
}

// border-left:none;防止中间表头的border重叠
QHeaderView::section:first 
{
	border-left:1px solid #8faac9;
}


你可能感兴趣的:(QTableWidget表头样式)